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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux