DNS Server search order

Axel Thimm Axel.Thimm at ATrpms.net
Fri Jan 5 11:01:27 UTC 2007


On Fri, Jan 05, 2007 at 10:24:22AM +0000, Dan Track wrote:
> Hi
> 
> I've got a problem resolving some internal hosts. I've listed three
> servers in my resolv.conf. The first two (ext1 ext2) are external and
> the last is internal (int 1). With this setup I'm unable to resolve my
> internal hosts.
> 
> However if I rearrange the dns servers so I now have
> 
> nameserver int1
> nameserver ext1
> nameserver ext2
> 
> I can resolve the internal hosts easily.
> 
> So my question is really why won't the hostnames get resolved if the
> internal DNS server is last in the list to be queried ?

Because when the external ones are queries on foo.internal they return
an authoritative "no such domain".

If you need to make smart choices on which nameserver to ask depending
on the domain, you need to run a local nameserver with zone referrals,
e.g.

options {
  forwarders { ext1; ext2; };
};

zone "internal" IN {
  type forward;
  forwarders { int1; };
}

then use

nameserver 127.0.0.1
nameserver int1
nameserver ext1

-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070105/5b1d4b18/attachment-0001.sig>


More information about the fedora-list mailing list