[Dnsmasq-discuss] separate resolv.conf for each interface

Simon Kelley simon at thekelleys.org.uk
Mon Sep 29 20:29:46 BST 2014

On 29/09/14 14:07, Moritz Warning wrote:
> Hi,
> I have dnsmasq running and configured to hand out different DHCP
> ranges on two different interfaces. Pretty standard. Now I need to
> use a different set of DNS servers for each interface.
> Is that possible?
> So far I have tried to run two dnsmasq instances. I had to patch up
> the OpenWrt init script. But binding to interfaces or IP-addresses
> is not possible because both interfaces share an IP-Address caused
> by network relaying. Well, this approach is somewhat messy. :)
> Maybe I can shut down dnsmasq DNS on one interface and use a
> different dnsmasq instance for just DNS on that interface?
> Thanks, mwarning

So you need to send queries to a different set of upstream DNS
servers, depending which interface the request is coming from? That's
not possible.

I'm not sure what the "both interfaces
> share an IP-Address " stuff is about. That's likely to make it
> very
difficult to do anything like this, since you'll need information from
below the IP layer even to determine which physical inteface a client
is on.



More information about the Dnsmasq-discuss mailing list