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

Mike Hoskins (michoski) michoski at cisco.com
Fri Jul 11 21:42:53 UTC 2014

I wouldn't do that just with resolv.conf, though maybe someone has such
magic.  :-)

In the past I've used a combination of tools with resolv.conf...  for
example, you could configure views with different forwarders if you
control the remote name servers already in resolv.conf, or
BIND/dnscache/similar on the local box which redirects specific domains as
configured with a catchall for everything else (then resolv.conf just
points to or wherever your local cache listens for queries).

-----Original Message-----
From: Edward Peschko <horos11 at gmail.com>
Date: Friday, July 11, 2014 at 5:28 PM
To: "dns-operations at dns-oarc.net" <dns-operations at dns-oarc.net>
Subject: [dns-operations] different dns servers for different domains.

>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
>For example:
>ping www.mydomain.com
>    should lookup based off of
>ping www.us-west.compute.internal
>    should lookup based off of
>This should be an exceedingly simple task, but its proving more
>difficult than I thought (no examples on the internet, the docs are
>not straightforward, etc)
>Anyone have a simple example /etc/resolv.conf that does the above?
>Thanks much,
>dns-operations mailing list
>dns-operations at lists.dns-oarc.net
>dns-jobs mailing list

More information about the dns-operations mailing list