[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: DNS Server search order

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,

options {
  forwarders { ext1; ext2; };

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

then use

nameserver int1
nameserver ext1

Axel.Thimm at ATrpms.net

Attachment: pgpa4NHVMQJ1A.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]