On Thu, 2005-09-22 at 14:43 -0400, Mark wrote:
> Can I specify different DNS servers for each of my two physical
> interfaces to use? One nic is configured for DHCP, and the other is
> static. The DHCP enabled NIC gets its DNS server list automatically
> and updates (overwrites) /etc/resolv.conf. How can I point my static
> IP NIC to a different DNS server since it's on a different network? Or
> is there a different/better solution?
> 
> -- 
> Mark
> [unwieldy legal disclaimer would go here - feel free to type your own]

I will venture a guess that the reason you want to do this is that each
DNS server can resolve some but not all of the names/IPs that you need
to resolve. In addition, rather than waiting for the resolver to timeout
and move onto the next nameserver, you would like send DNS queries to
the appropriate DNS server on the first attempt.

If the above is true, one of the things you could do is run a local
caching nameserver and point resolv.conf to localhost (127.0.0.1). You
would then configure forwarders (upstream DNS servers) on a domain by
domain basis as well as a default one. This is especially easy to do
with dnscache/tinydns.

Eric


-- 
gentoo-user@gentoo.org mailing list

Reply via email to