nsquery and ping works - nslookup does not (256 Views)
Reply
Honored Contributor
Tim Nelson
Posts: 3,723
Registered: ‎06-01-2000
Message 1 of 8 (256 Views)

nsquery and ping works - nslookup does not

Just ran into a weird issue where nslookup fails to lookup a fqdn
nsquery and ping both are successfull

resolv.conf and nsswitch.conf are configured as I have always configured them

resolv.conf
nameserver 172.20.1.10

nsswitch.conf
hosts: files [notfound=continue] dns

nslookup yahoo.com
*** Can't find server name for address 172.20.1.10: Non-existent domain
*** Default servers are not available
Using /etc/hosts on: uxapp2b

looking up FILES
Trying DNS
*** can't find yahoo.com: No response from server

If I run a manual nslookup and set the server to my NS then it works but not via command line even specifying the name server.

Any ideas ?

Multiple servers all 11.11 or 11.23 some from Sept 2006 patch bundle to June 2007 bundle.

Any ideas while I search the patch database ?
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,036
Registered: ‎02-23-2005
Message 2 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

> *** Can't find server name for address 172.20.1.10: Non-existent domain

I know nothing, but the message makes it
appear that nslookup expects to be able to
get a name for the name server (172.20.1.10).

Have you tried adding an entry (with a name)
in /etc/hosts for 172.20.1.10?
Please use plain text.
Honored Contributor
whiteknight
Posts: 1,501
Registered: ‎11-22-1999
Message 3 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

Hi Tim,

What is your bind version ?

PHNE_33766 11.11 Bind 8.1.2 Patch
PHNE_36973 11.23 Bind 9.2.0 components

WK
Problem never ends, you must know how to fix it
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 4 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

Shalom,

See that server 172.20.1.10 is fully resonsive.

telent 172.20.1.10 53

You should get a connection. I suspect an off system problem with the nameserver nothing wit the system itself.

Regards,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Honored Contributor
Tim Nelson
Posts: 3,723
Registered: ‎06-01-2000
Message 5 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

Steven - Yes, There is an entry for the nameserver IP in the host table

WK - A respectfully recent PHNE_35920. Some older servers have the same issue running BIND 8.1.2. I will put the latest patch on my test server and get back to you.

SEP - Telnet connects to port 53, telnet, ping, nsquery, dig, succussfully lookup up many different DNS names. i.e. yahoo, hp, google, etc..



Please use plain text.
Trusted Contributor
John Guster
Posts: 506
Registered: ‎03-16-2006
Message 6 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

please include domain and search in /etc/resolv.conf some thing like below:
domain abc.com
search abc.com abcnet.abc.com
Please use plain text.
Honored Contributor
Tim Nelson
Posts: 3,723
Registered: ‎06-01-2000
Message 7 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

Here is what it looks like so far.

nslookup ( being depreciated according to a number of HP knowledge base articles ) does some things differently.

One of which it will do a reverse lookup on the nameserver IP to set the default nameserver.

In my environment the DNS admins ( M$ world ) have chosen not to configure any reverse data. The reverse lookup also does NOT look in the local host file but only via DNS. This is causing nslookup to fail across the board. KBRC00013982 and emr_na-c00926219-1 for details on this nslookup functionality.

All DNS hostname resolution seems to work with the exception of nslookup.

On W2K nslookup complains in the same way about not being able to set the default dns server name but the query still works.

I guess the answer is. Use dig or nsquery. nslookup is being depreciated anyway. ( or get DNS admins to configure properly :)

Thanks all.

Tim


Please use plain text.
Honored Contributor
Tim Nelson
Posts: 3,723
Registered: ‎06-01-2000
Message 8 of 8 (256 Views)

Re: nsquery and ping works - nslookup does not

Had M$ admin add/fix reverse lookup in DNS.

Summary:
nslookup attempts to do a reverse lookup on the nameserver IP via DNS in order to set the default name server hostname. If the DNS server is not configured properly then nslookup fails for all lookups.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation