Operating System - HP-UX
1834078 Members
2612 Online
110063 Solutions
New Discussion

How to find out secondary DNS entry in resolv.conf works

 
SOLVED
Go to solution
yc_2
Regular Advisor

How to find out secondary DNS entry in resolv.conf works

Hi,

There are two entries (pri and sec DNS IP) in the /etc/resolv.conf.

Is there a way to find out whether HP-UX version 11.11 will make use of the secondary DNS entry in resolv.conf when the pri DNS is down?

Thanks in advance.
6 REPLIES 6
harry d brown jr
Honored Contributor
Solution

Re: How to find out secondary DNS entry in resolv.conf works

There's really no need to test it because it works.

You could put in a bogus IP address on the first line which would fail and then the query would go to the second entry.

Have a look at this thread (find my attachment) for a DNS caching server: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840826

Make sure to read the README files.

live free or die
harry d brown jr
Live Free or Die
Lee Harris_5
Valued Contributor

Re: How to find out secondary DNS entry in resolv.conf works

You could test the ability to perform lookups on your secondary DNS server manually using the nslookup command...

# nslookup
> server [ENTER]

And then type in a hostname or IP to query, and you should get a response.
RolandH
Honored Contributor

Re: How to find out secondary DNS entry in resolv.conf works

Just use nslookup command.

# nslookup server1


Roland
Sometimes you lose and sometimes the others win
Geoff Wild
Honored Contributor

Re: How to find out secondary DNS entry in resolv.conf works

As Harry says - put a dummy ip as first line...

Also, - to decrease timeouts, you can set:

retrans 2500
retry 2

at end of resolv.conf

man resolv.conf for mor info


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.
yc_2
Regular Advisor

Re: How to find out secondary DNS entry in resolv.conf works

Hi,

Thanks a zillion (expecially using bogus IP to simulate pri DNS down).

Is there any document from HP how a DNS query works? That is something like flow chart to explain how HP-UX as a client when issue nslookup get a host name or IP address resolution from a DNS server step by step?
harry d brown jr
Honored Contributor

Re: How to find out secondary DNS entry in resolv.conf works


I think the O'reilly book on BIND describes it the best. Any half decent book store will have it.

live free or die
harry d brown jr
Live Free or Die