[Dnsmasq-discuss] Set outgoing IP-Address to dns-upstream-servers

Rance Hall ranceh at gmail.com
Fri Mar 6 15:20:51 GMT 2009


On Fri, Mar 6, 2009 at 6:24 AM, Michael Rack
<dnsmasq.list at michaelrack.de> wrote:
> Hi List, Hi Simon!
>
> Is it able to tell DNSMASQ to use an fixed ip-address to contact
> dns-upstream-servers that defined in /etc/resolv.conf ?
>


You do this with routes,  on a multihomed machine each IP address is
also part of a network and is part of the route to get to that
network.

If you set up your routes correctly  (generally speaking the default
is correct) then the correct local static ip is always used when
leaving your box to go anywhere, including upstream dns servers.

You can of course manually manipulate the routes to force an issue if
you have to, but beware you can break networking completely.



More information about the Dnsmasq-discuss mailing list