nslookup behaving strangely

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat nslookup behaving strangely
# 1  
Old 09-30-2010
nslookup behaving strangely

I have two servers on same domain. one can nslookup other cannot

Psu100 can lookup to psu000, psu010 & psu011
Psu110 can NOT lookup to psu000, psu010 & psu011

I verified resolv.conf entries on both psu000 and psu010 and it contains both name servers (10.200.10.21 & 10.200.11.22).I am wondering why lookup works from one server and doesn't works from other.

___________________________________________________
psu100-> nslookup psu000
Server: 10.200.10.21
Address: 10.200.10.21#53

Name: psu000.selectfamily.com
Address: 10.200.9.100

psu100-> nslookup psu010
Server: 10.200.10.21
Address: 10.200.10.21#53

Name: psu010.selectfamily.com
Address: 10.200.9.105

psu100-> nslookup psu011
Server: 10.200.10.21
Address: 10.200.10.21#53

Name: psu011.selectfamily.com
Address: 10.200.9.111
_______________________________________________________

psu110-> nslookup psu000
Server: 10.200.10.21
Address: 10.200.10.21#53

** server can't find psu000: SERVFAIL

psu110-> nslookup psu010
Server: 10.200.10.21
Address: 10.200.10.21#53

** server can't find psu010: SERVFAIL

psu110-> nslookup psu011
Server: 10.200.10.21
Address: 10.200.10.21#53

** server can't find psu011: SERVFAIL

_______________________________________________________
# 2  
Old 10-01-2010
You are using non-fully qualified names... so... my guess is that there is a correct search path (selectfamily.com) in /etc/resolv.conf on one host vs the other. Try using a fully qualified name and see if that works... and/or check your /etc/resolv.conf.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

[Solved] wc behaving weirdly

Can anyone explain why wc is behaving weirdly? Their are only 2 occurrences but wc thinks their are 7 occurrences. I have even manually checked this. $ grep -i base * lit: base xx lit.lst:003- 00103 BASE XX $ grep -i base * | wc -w ... (2 Replies)
Discussion started by: cokedude
2 Replies

2. Shell Programming and Scripting

awk not behaving as expected

Hi, Immediate help on below will be appreciated. I have to read a file (max of 10MB) which will have no new line characters, i.e. data in single line. and have to inster '\n' at every 100 characters. and if record starts with 'BUCA' then need to pick value of length 10 at position 71 and... (7 Replies)
Discussion started by: maks475
7 Replies

3. Emergency UNIX and Linux Support

Nslookup!!! Please look up!!!

Hi all Nslookup command returns!!!! Code: nslookup 10.91.44.29 Server: 127.0.0.1 Address: 127.0.0.1#53 29.44.91.in-addr.arpa name = station1.example.com Code: nslookup station1.example.com Server: 127.0.0.1 Address: 127.0.0.1#53 Name: ... (4 Replies)
Discussion started by: anishkumarv
4 Replies

4. Shell Programming and Scripting

nslookup: am I doing it right?

Hi guys, I'm back to get some help again :) I have a file that has a list of IP addresses, and I use nslookup in my script to resolve hostnames of those IPs. the problem I'm facing is that I not all the hostnames got resolved! and I don't know why. sometimes the same duplicate IP returns a... (8 Replies)
Discussion started by: Abdulelah
8 Replies

5. Shell Programming and Scripting

Grep command behaving strangely

Hi, I need to count number of '$' symbol in a file and assign it to a variable. I am using below command. grep -c '\$' inputfile O/p: 10359 Its giving correct o/p but when I am assigning the same to a variable its giving completely different o/p. ab1=`grep -c '\$' inputfile` $... (3 Replies)
Discussion started by: Opamps123
3 Replies

6. Shell Programming and Scripting

Loop Forever Script Strangely Exiting

Hi, I have a really simple script which I want to run forever, inside the loop it runs a C application which if it exits should restart. #!/bin/sh while true do ./SCF scf.conf >> scf.log sleep 2 done For some reason the SCF C application coredumps and the script is exiting.... (3 Replies)
Discussion started by: marvinwright
3 Replies

7. UNIX for Advanced & Expert Users

FTP behaving erraneous way

Hi Gurus, I tried FTP one file to UNIX which got values like wel^come If I see the content in unix, it shows like wel^Zcome ^ coverted into ^Z (Control + Z ) Can someone please share what is happening here? Thanks, Shahnaz (5 Replies)
Discussion started by: shahnazurs
5 Replies

8. Shell Programming and Scripting

tr command behaving unexpectedly

Im trying to execute the below command on our server to list files and replace the newline in the file list with spaces, but the character 'n' is getting replaced with a space, is there any environment variable that needs to be set in UNIX? sh -c 'ls -trx... (1 Reply)
Discussion started by: rameshrr3
1 Replies

9. UNIX for Advanced & Expert Users

/etc/hosts on Ubuntu behaving strangely

Hy guys, I'm having a very strange problem, every time I change the /etc/hosts file on an Ubuntu machine @ work, every time I change the line: 127.0.0.1 programmer.COMPANY to 127.0.0.1 programmer.COMPANY programmer It works till the next reboot, now, I have never experienced this on... (5 Replies)
Discussion started by: Zarnick
5 Replies

10. UNIX for Advanced & Expert Users

csplit not behaving

I have a large file with the first 2 characters of each line determining the type of record. type 03 being a subheader and then it will have multiple 04 records. eg: 03,xxx,xxxx,xxxx 04,xxxxxxxxxxxxxxxxxxxxxxxxxxxx 04,xxxxxxxxxxxxxxxxxxxxxxxxxxxx 03,xxx,xxx,xxx ... (2 Replies)
Discussion started by: badg3r
2 Replies
Login or Register to Ask a Question