Operating System - HP-UX
1748181 Members
3373 Online
108759 Solutions
New Discussion юеВ

Re: Is my hpux box using DNS server?

 
Go to solution
mogiro
Regular Advisor

Is my hpux box using DNS server?

Hi,
I have a rp8420 with HPUX11.11. I see it has a DNS server configured in /etc/resolv.conf but I think it is not using it as the nsswitch.conf us:
hosts: files [NOTFOUND=return UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

Am I right?
Thanks in advance.
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor
Solution

Re: Is my hpux box using DNS server?

Hi,

Yes your box is using DNS, it will first search the /etc/hosts file then ask the dns server. Try to resolve an IPadress or hostname with the nslookup command,

Regards,
Robert-Jan
mogiro
Regular Advisor

Re: Is my hpux box using DNS server?

mmm, so I have another question now.
if it is using DNS first, why when I issue a nslookup machine.domain it answers:
*** Can't find server name for address xxx.xxx.xxx.xxx: Non-existent domain
I'm sure I introduces rightly the DNS server IP's and the machine I am asking for on the nslookup exists...
James R. Ferguson
Acclaimed Contributor

Re: Is my hpux box using DNS server?

Hi:

> if it is using DNS first, why when I issue a nslookup machine.domain it answers:
*** Can't find server name for address xxx.xxx.xxx.xxx: Non-existent domain

This is a standard response for either a simple or fully qualified name lookup that fails.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Is my hpux box using DNS server?

Shalom mogiro,

Either the host name being looked up does not exist, or the server is not communicating correctly.

Based on your nsswitch.conf configuration and prior posts and the error message, I'd say you are using a DNS server and its not answering your query.

nslookup has an interactive mode that will let you look up a host name from any DNS server you choose.

If the HP DNS/BIND package is installed, you get dig which has more varied options for testing DNS environment, even if you never use it as a server. dig is standard on Linux.

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
Bill Hassell
Honored Contributor

Re: Is my hpux box using DNS server?

Use nsquery rather than nslookup. It is much more useful in tracing the steps in resolving a hostname or IP address:

nsquery hosts www.hp.com


Bill Hassell, sysadmin