Re: DNS Server search order

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

 



On 1/5/07, Axel Thimm <Axel.Thimm@xxxxxxxxxx> wrote:
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

Hi

Thanks for your reply. IF the first DNS replies with the "no such
domain" then why doesn't the check query the other remaining two DNS
servers, why does the DNS query stop at the first DNS server?

Thanks
Dan


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux