How do I get the default Network Manager plus dnsmasq-base setup back again?

Chris Green cl at isbd.net
Sun Jan 6 15:35:58 UTC 2013


On Sat, Jan 05, 2013 at 08:30:19PM -0500, Tom H wrote:
> On Sat, Jan 5, 2013 at 9:28 AM, Chris Green <cl at isbd.net> wrote:
> >
> > A while ago I installed the 'full' dnsmasq package on my desktop machine
> > so that it ran as a the DNS and DHCP server on my LAN.  In addition to
> > installing dnsmasq (and configuring /etc/dnsmasq.conf) I commented out
> > the dns=dnsmasq line in /etc/NetworkManager/NetworkManager.conf.
> >
> > This setup worked fine for a while but now I want to use another server
> > on my LAN to provide DNS and DHCP.
> >
> > I have removed the dnsmasq package from my desktop machine and have
> > uncommented the dns=dnsmasq line in /etc/NetworkManager/NetworkManager.conf.
> > However Network Manager *isn't* running dnsmasq as it should.
> >
> > How do I get back to the default setup with dnsmasq being run by Network
> > manager as a caching DNS server?  I have tried uninstalling and
> > reinstalling Network Manager but that doesn't help at all.
> 
> Have "/etc/default/dnsmasq", "/etc/dnsmasq.conf", "/etc/dnsmasq.d/",
> and "/etc/init.d/dnsmasq" (and any symlinks to the latter in
> "/etc/rcX.d/") been deleted by uninstalling dnsmasq-base?
> 
/etc/default/dnsmasq, /etc/dnsmasq.conf and /etc/init.d/dnsmasq are all
gone.

/etc/dnsmasq.d/ still exists but has a single file "network-manager" in
it which I think is as it should be for the default setup.  It's like
that on the similar system I have where the dnsmasq run by network
manager is working OK.


> Not quite what you want:
> 
> Why don't you re-install dnsmasq and use it as a forwarding and
> caching dns server. You can disable its dhcp-server feature with
> "no-dhcp-<something>" (I've forgotten what "<something>" is) in
> "/etc/dnsmasq.conf".
> 
Yes, I could do that, but I'd really like to get back to the default
setup.  I keep my system as standard as I possibly can.

It all actually works OK as it is of course because the DNS is set up
correctly in /etc/resolv.conf by Network Manager (pointing at my new DNS
server on the LAN).

-- 
Chris Green




More information about the ubuntu-users mailing list