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

Rick Wesson rick at support-intelligence.com
Fri Jul 11 22:42:24 UTC 2014


run dnsmasq on 127.0.0.1 (loopback) and point resolv.conf at it (127.0.0.1)

read default config has commented examples of what you are asking for.

-rick



On Fri, Jul 11, 2014 at 2:28 PM, Edward Peschko <horos11 at gmail.com> wrote:

> All,
>
> 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.
>
> For example:
>
> ping www.mydomain.com
>
>     should lookup based off of 192.168.0.1
>
> ping www.us-west.compute.internal
>
>     should lookup based off of 172.16.0.1
>
> 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,
>
> Ed
> _______________________________________________
> dns-operations mailing list
> dns-operations at lists.dns-oarc.net
> https://lists.dns-oarc.net/mailman/listinfo/dns-operations
> dns-jobs mailing list
> https://lists.dns-oarc.net/mailman/listinfo/dns-jobs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dns-oarc.net/pipermail/dns-operations/attachments/20140711/a3a555cc/attachment.html>


More information about the dns-operations mailing list