Operating System - HP-UX
1751819 Members
5052 Online
108782 Solutions
New Discussion юеВ

Re: System is not resolving (DNS)

 
SOLVED
Go to solution
TD Clark
Advisor

System is not resolving (DNS)

I have an L2000 running 11.0. DNS is not resolving (local hosts file okay). Nothing on this system has changed for years. We have 2 other L2000's with the same configuration working fine (i.e. the dns server appears to be okay). Any ideas? Thanks!
14 REPLIES 14
Mark McHugh
New Member
Solution

Re: System is not resolving (DNS)

Todd,

Are you saying that any server names in your local host file resolv, but not those you expect to find in DNS? If there is no problem with your DNS server, your /etc/resolv.conf must be incorrect or missing. Have you recently restored from an ignite image? If so this file needs to be restored manually. Also take a look at your nsswitch.conf and be certain the order is what you expect. (Should be hosts --> DNS --> yp if you use it).

Regards,

Mark McHugh
THINK OF YOURSELF AS A CUSTOMER
Mark Greene_1
Honored Contributor

Re: System is not resolving (DNS)

Verify the settings in nsswitch.conf and resolv.conf, /etc/netconfig (if present). Make sure that NIS hasn't been enabled. Make sure you can ping your dns server; depending on your network type and setup, this particular box may have been isolated from the dns box.

HTH
mark
the future will be a lot like now, only later
TD Clark
Advisor

Re: System is not resolving (DNS)

resolv.conf and nsswitch.conf are there and haven't been changed for over a year. I also looked at the files - they look okay too.
Olivier ROBERT
Frequent Advisor

Re: System is not resolving (DNS)

Hi Todd,

Are the L2000s all on the same subnet?
Are the DNS servers the same on all?
Can you ping the DNS servers from the faulty system?
Can you access remotely to the faulty system?
Does your "hosts" resolving policy contain the "dns" source (in /etc/nsswitch.conf)?
Are your resolver configuration files OK? (/etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf)
Do the files contain more/less lines that is seems to contain at a first sight? (Maybe what seems to be a linewrap in your editor is a real newline, compare a "wc -l " with what you see eventually)
Do you use some other source (nis, nisplus)?
Do the files have a suspiciously recent modification time?

Well, that's all I can think of, for now...
Hope this helps,

Olivier
TD Clark
Advisor

Re: System is not resolving (DNS)

I can ping the dns server. The DNS server is the same for all of our systems (this system is the only one that can't resolve) and all of our resolve related files (nsswitch.conf, resolv.conf, netconfig) have not been modified for over a year and look okay.
Mark Greene_1
Honored Contributor

Re: System is not resolving (DNS)

Todd,

Try this: run nslookup without any options. At the > prompt, do "set debug" (without the quotes), and then "set swtrace", and then enter the name of your dns server, and then the ip address of your dns server and see if that sheds any light on this.

mark
the future will be a lot like now, only later
Wilfred Chau_1
Respected Contributor

Re: System is not resolving (DNS)

Does the following return anything?

# nslookup

Geoff Wild
Honored Contributor

Re: System is not resolving (DNS)

Actually, just do a:

nslookup

by itself - it will tell you the default server - if you get an error (like server not responding) then you have an issue (maybe dns isn't running on the dns server, or the port has been blocked...etc).

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.
harry d brown jr
Honored Contributor

Re: System is not resolving (DNS)


What version of Bind are you running?

what /usr/sbin/named

Can you post these files?

/etc/resolv.conf
/etc/nsswitch.conf
/etc/rc.config.d/namesvrs

If you run "named", is it running now and can you post the conf files?

and the output from

netstat -rn
domainname
hostname


live free or die
harry
Live Free or Die