1834112 Members
2477 Online
110063 Solutions
New Discussion

Search two DNS Sources

 
SOLVED
Go to solution
Rob Mallard
Valued Contributor

Search two DNS Sources

I have two DNS servers, a private internal root server and a public server on the Internet. I want to first search the internal then if the host is not found search the external server. Is this possible?

Thanks!
6 REPLIES 6
Brian M. Fisher
Honored Contributor

Re: Search two DNS Sources

If you are trying to point your HP box to an existing DNS server, create the file /etc/resolv.conf with two entries:
domain companydomain.com
nameserver ###.###.###.###

a second and third nameserver line is allowed.


Brian
<*(((>< er
Perception IS Reality
Tim Malnati
Honored Contributor

Re: Search two DNS Sources

The best way to handle this is to have your internal DNS server point to the external DNS server for resolution. Although this is more work for the internal server, requests will be cached there for the TTL period. In effect you will be drastically reducing the external requests made and therefor improve external bandwidth. You will also improve DNS response time on cached requests as well (more often than you would think).
Albert E. Whale, CISSP
Honored Contributor

Re: Search two DNS Sources

Rob,

Certain versions of Bind require that you maintain a Pirmary Master DNS Server (one for your Domain) if it is going to be diconnected (a Private DNS).

You can establish the Private DNS (Internal Server) so that no one outside of your internal network can get to it, and then forward any unknown queries to the External DNS.

This will maintain your Private DNS internally, and Also allow you full DNS resolution Externally.

Please let me know if you need further assistance.

Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Berlene Herren
Honored Contributor
Solution

Re: Search two DNS Sources

Rob,
Yes. In your named.boot, place a line like this at the end

forwarders 15.253.24.10 15.253.24.10
<-- who do i punt to???

It is better to have them in there twice, to prevent timeouts. The IP address is the DNS IP on the External site.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Bill Hassell
Honored Contributor

Re: Search two DNS Sources

Note: the resolv.conf file allows up to 3 DNS servers. However, the alternate DNS servers are *NOT* contacted if the primary server does not locate a DNS entry. resolv.conf is strictly a fallback list. The second and third DNS servers will be queried if (and only if) the previous server is dead (not responding at all). That tis not the same as returning 'not found'. The primary (internal) DNS server should be configured to point to authoritative servers on the Internet if a non-local address is being requested.


Bill Hassell, sysadmin
Michelle Barton
Frequent Advisor

Re: Search two DNS Sources

Hi,
I am trying to get this going. Did you ever come to a resolution?

Thanks,
Michelle Hames
Xtra Corp