1836617 Members
1759 Online
110102 Solutions
New Discussion

Re: resolver problem

 
Aaron Weber_1
Occasional Advisor

resolver problem

My network address resolution seems to quit after the first "option" in
nsswitch.conf.

For example, if I use:
hosts: files dns
I can resolve all my "local" machines that are entered in the /etc/hosts file,
but NO machines registered with the DNS server(s).

If I use:
hosts: dns files
I can resolve anything the DNS server "knows", but none of the info in the
/etc/hosts file is used!

I even tried explicitly entering the "rule" between the two, and this did not
help!

Any Help is much appreciated!

HPUX 11.0 with 'March Patch Cluster' is installed.

--AJ
4 REPLIES 4
Atif Malik_2
Frequent Advisor

Re: resolver problem

Have you tried:

hosts: files [NOTFOUND=continue] dns
David Seijo_3
New Member

Re: resolver problem

Hi Aron,

The ability to consult more than one name service for host information is
called 'hostname fallback'. The default settings for the /etc/nsswitch.conf is

hosts: dns [NOTFOUND=return] files

..which means, it will try to resolve the hostname_to_IP by using dns, if the
IP is not resolved then it will finish the resolution.
Try doing the following to your nsswitch.conf file:

hosts: dns [NOTFOUND=continue] files

Hope this will help you.

Thanks,

David
Berlene Herren_1
Super Advisor

Re: resolver problem

Aaron, I thought we had fixed this earlier

On 11.0, nslookup was trying to find a library that was on 10.20. You can apply
the new BIND patch for 11.0 (version 4.9.7) that will fix this, or if you have
a 10.20 box, copy the nslookup from that to your 11.0 box. It will work fine.

Did you try this?

Berlene
Aaron Weber_1
Occasional Advisor

Re: resolver problem

I didn't try explicitly patching this, because I assumed that it would be
included in the March Patch Cluster (since that's fairly new).

Can you tell me what patch number to download, as I don't have a 10.20 box
available.

Also, are we trying to fix nslookup specifically, or all name resolution, as
the latter is what I'm actually after.

Thanks in advance.
--Aaron