Can I install dnsmasq as well as (instead of?) dnsmasq-base?

Marius Gedminas marius at pov.lt
Mon Nov 12 16:24:48 UTC 2012


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
that.

> 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?

Anyway, I don't think that would be necessary to have what you want.

HTH,
Marius Gedminas
-- 
You can't have megalomania.  *I* have megalomania.
		-- Joe Bednorz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20121112/2671e502/attachment.sig>


More information about the ubuntu-users mailing list