1833832 Members
2278 Online
110063 Solutions
New Discussion

DNS Name Resolver

 
SOLVED
Go to solution
Michelle Barton
Frequent Advisor

DNS Name Resolver

I have an 11i DNS HPUX server which hosts our primary DNS entries for all of our Unix servers. My network folks have recently rolled out a windows DNS server which I need to setup on our Unix server too. Basically, I want DNS to look first at the unix server and if it can't resolve it there, go look in the Windows server. Can someone point me in the right direction? I know I could go search the manual, but I thought someone might know quickly.

Thanks,
Michelle
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: DNS Name Resolver

You can set up the windows DNS as the secondary dns server in /etc/resolv.conf

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
Sundar_7
Honored Contributor

Re: DNS Name Resolver

Hi,

You would like ur DNS clients to try ur Unix DNS server first and then try the windows server if it cannot get the query resolved from the Unix server ?

As far as I can reach, I dont think this is possible. You can have your DNS clients contact the Windows DNS server in case YOUR UNIX DNS server is not available completely.

The best you can do is to setup your UNIX DNS server to forward the queries to ur Windows DNS server anything it doesnt know how to handle.

Sundar.
Learn What to do ,How to do and more importantly When to do ?
Geoff Wild
Honored Contributor

Re: DNS Name Resolver

Is your Windows DNS going to be just a secondary? Are you running Dynamic Updates? If you are talking just the resolver, then in /etc/resolv.conf on unix hosts, add (next line) the ip of the Windows DNS AFTER your Unix DNS server's IP.

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.
James A. Donovan
Honored Contributor

Re: DNS Name Resolver

Editing your resolv.conf won't help you. If the first line of your resolve.conf points to your HP-UX DNS server and you get a response of any kind (even host not found), then the second server will never be looked at.

You need to get your DNS servers to talk to each other.

This link has the documentation for Bind 9.2 on HP.

http://docs.hp.com/hpux/onlinedocs/5990-6785/5990-6785.html

Remember, wherever you go, there you are...
Thomas Bianco
Honored Contributor
Solution

Re: DNS Name Resolver

"forwarder" is the option that you need. We have the opposite setup (windows hierarchy with a Unix forwarder). This is an easy one: add "forwarders " to your named.conf on the DNS server.

I talked about this option at the bottom of this: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=418909
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
Sanjay_6
Honored Contributor

Re: DNS Name Resolver

Hi,

on your unix server, edit /etc/resolv.conf and put the second dns server ip address over there,

domain some_name.some_domain.com
nameserver ip_add_of_primary_dns_server
nameserver ip_add_of_secondary_dns_server

In this situation, if the system is unable to resolve the ip address of a system using the primary dns server (hp) it will use the secondary dns server (win) to resolve the ip address and vice versa.

Hope this helps.

Regds