System Administration
Showing results for 
Search instead for 
Do you mean 

Is my hpux box using DNS server?

SOLVED
Go to Solution
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
Highlighted
Honored Contributor

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
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...
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...
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
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