[dns-operations] different dns servers for different domains.

Chris Adams cma at cmadams.net
Fri Jul 11 21:40:15 UTC 2014


Once upon a time, Edward Peschko <horos11 at gmail.com> said:
> I'm trying to create a /etc/resolv.conf where one dns server is used
> in the case of one domain, and a different dns server is used for
> another.

Basically, you can't with just /etc/resolv.conf (aka via the standard
libc resolver).  It is easy to do with a more featureful local resolver,
something like unbound or bind (I'm not sure if dnsmasq can do it).
Then you'd point resolv.conf to 127.0.0.1.

-- 
Chris Adams <cma at cmadams.net>



More information about the dns-operations mailing list