Re: [PATCH] dnsmasq DBUS integration

On Thu, Apr 19, 2012 at 2:16 PM, Howard Chu <hyc symas com> wrote:
> But if NM is *not* the only thing making sure DNS is set up correctly, and a
> savvy sysadmin has already painstakingly configured the network on his
> machine, there should be a (non-default of course) config option to tell NM
> to keep its grubby paws off.
> On my server boxes with static network configurations I would just leave NM
> uninstalled but that breaks too many other dependencies on modern distros.
> On my laptop using dnsmasq is the only sane way to work; I've got blacklists
> configured for spam domains and such that I want active no matter what
> network I've connected to.

If you're indeed running on Ubuntu, default server installations don't
ship with NetworkManager at all. On the desktop, I believe there are
enough facilities to configure static interfaces (basically, via
/etc/network/interfaces), which will avoid NetworkManager touching
configuration. This includes /etc/resolv.conf as far as I know.

So if you're "savvy" enough to want to use "static" network
configurations via /e/n/i (even using DHCP), I believe things are all
working properly if all interfaces are defined there. NM just
considers them up, which will have your other applications work.

If you're using some interfaces configured in /e/n/i and some (like
wifi) in NM, then yes, NM is expected to update /etc/resolv.conf, just
like dhclient does, to set the correct DNS nameservers as received
from DHCP. On static configurations in NM, it will apply the
configuration set for that connection. If you're using dnsmasq
already, I guess you could make all these connections just write to /etc/resolv.conf (e.g. set it as DNS nameserver in NM)
and you'll be able to continue using dnsmasq to resolve.

Note that in Ubuntu 12.04 we're starting to ship dnsmasq enabled as
started as a local resolver (though we disabled caching).

So, perhaps so that everyone can understand your particular use case,
could you please tell us more about your particular config?

Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
Freenode: cyphermox, Jabber: mathieu tl gmail com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E  FF82 C126 33E1 EE01 8C93

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]