Operating System - HP-UX
1831213 Members
2752 Online
110021 Solutions
New Discussion

Different Outputs from nslookup

 
SOLVED
Go to solution
KPS
Super Advisor

Different Outputs from nslookup

Hi,

I'm seeing some differences in the way nslookup shows Resolved IP and Host info...

On RedHat 2.1, I use nslookup for look up on an IP and get: (Reverse Address DNS Address and Hostname resolved)

Example:) 52.205.102.10.in-addr.arpa

If I do this on an HP-UX 11.11 I only get the forward IP.

What I'm wondering is if this is correct behavior consistent with what each OS shows you or could there be something wrong with my Host Configurations in /etc/resolv.conf or /etc/nsswitch.conf on either one of these nodes specifically?
2 REPLIES 2
Sundar_7
Honored Contributor
Solution

Re: Different Outputs from nslookup

Ken,

As far as I know, that is exactly the behaviour you can expect from HP-UX implementation of nslookup.

I cannot tell you about RedHat nslookup, but HP-UX nslookup doesnt use the standard gethostbyaddr() and gethostbyname() functions. It uses its own functions and has its own default criteria (if nsswitch.conf file is not there).

- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: Different Outputs from nslookup

Depends on version of resolver on hosts...could also be your host configs - are they the same?

Maybe try dig instead.

dig -x 10.102.205.52

Comes with bind 9, else install HP-UX version from here:

http://hpux.ee.ualberta.ca/hppd/hpux/Networking/Admin/dig-2.0/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.