Re: Multihomed interface and split DNS with dnsmasq
Roy Marples
Thu Apr 18 16:41:39 2013
On 18/04/2013 14:48, David J. Haines wrote:
I have a box with one physical ethernet adaptor, and I'm running it
multihomed on two subnets. One subnet (192.168.0.0/24) has a DNS
server
on it (192.168.0.2) that needs to be queried for an internal domain.
The other subnet (10.0.0.0/24) is my default route to the greater
Internet and I tend to use Google's DNS (8.8.8.{8,4}) for my queries.
In the past, I have used dnsmasq's "server=/<domain>/<address>'
syntax
in /etc/dnsmasq.conf to split my DNS queries for me. With Arch
Linux's
recent adoption of openresolv for its more advanced networking
framework, I am trying to get openresolv and dnsmasq to work together
to
split my DNS as before; however, I can only to have one DNS server or
the other operable at any one moment.
Any hints on how to get this multihomed, split DNS situation to work
(i.e. how to get openresolv to pass both a "server=<address>" and a
"server=/<domain>/<address>" string to dnsmasq.conf)?
Any help would be greatly appreciated.
http://roy.marples.name/projects/openresolv/wiki/OpenResolvReasons
Examples of a supplied resolv.conf(5) to resolvconf(8) are shown.
The key part is the domain / search keyword which tells openresolv that
the supplied nameservers are to be queried for requests against that
domain.
http://roy.marples.name/projects/openresolv/wiki/OpenResolvConfig
Shows how to configure openresolv for dnsmasq(8)
http://roy.marples.name/projects/openresolv/wiki/OpenResolvConfigDnsmasq
Shows a sample dnsmasq configuration
So the only question I would ask moving forwards is how does
resolvconf(8) in your setup receive it's information.
DHCP?
Thanks
Roy
Archive administrator: postmaster@marples.name