Can I install dnsmasq as well as (instead of?) dnsmasq-base?
cl at isbd.net
Tue Nov 13 09:34:33 UTC 2012
On Mon, Nov 12, 2012 at 06:24:48PM +0200, Marius Gedminas wrote:
> On Mon, Nov 12, 2012 at 01:52:28PM +0000, Chris Green wrote:
> > On Mon, Nov 12, 2012 at 02:36:11PM +0200, Marius Gedminas wrote:
> > > On Mon, Nov 12, 2012 at 12:20:32PM +0000, Chris Green wrote:
> > > > Current (i.e. 12.04 and 12.10) versions of Ubuntu install dnsmasq-base
> > > > as a dependency of Network Manager (this is because Network Manager now
> > > > runs dnsmasq as a local caching DNS server).
> > > >
> > > > I want to run my own configuration for dnsmasq. If I install the
> > > > dnsmasq package will this then 'play nicely' with Network Manager?
> > >
> > > TL;DR: Yes.
> > >
> > > For values of 'play nicely' meaning your dnsmasq configuration will
> > > override whatever Network Manager is doing, so, e.g., if you configure
> > > split DNS configuration for your VPNs in NM, that configuration will not
> > > have any effect. (I'm assuming you can do that in NM, I've never tried
> > > myself.)
> > >
> > > On the other hand, things work fine for regular use -- when Network
> > > Manager connects to some network and gets a DHCP lease, the proper DNS
> > > for that network ends up being used by the system-wide dnsmasq.
> > >
> > I want 'my' dnsmasq to provide both DHCP and DNS services on the LAN
> > because the DHCP in my router doesn't store names when hosts register
> > using DHCP.
> You want to override the real DNS? I'm sure dnsmasq has a way of doing
dnsmasq provides local dns on the LAN and passes anything for which it
doesn't know the answer on to the 'real' DNS servers 'out there'.
That's its major function in life. When it also provides DHCP services
the systems on the LAN provide it with their names so that one can use
names for all of one's local systems.
> > If I remove the "dns=dnsmasq" line from will that do what I want, i.e.
> > just run my dnsmasq?
> Remove that line from where?
Oops, that was supposed to be pasted in there! :-)
It's in /etc/NetworkManager/NetworkManager.conf, if you take it out then
Network Manager doesn't run dnsmasq for you.
> Anyway, I don't think that would be necessary to have what you want.
> Marius Gedminas
> You can't have megalomania. *I* have megalomania.
> -- Joe Bednorz
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
More information about the ubuntu-users