[Dnsmasq-discuss] How to prevent Network Manager changing /etc/resolv.conf so dnsmasq doesn't cache?

Chris Green cl at isbd.net
Tue Nov 5 19:59:04 UTC 2024


I have just moved from xubuntu to debian and I'm trying to work out
how to configure dnsmasq and Network Manager.

I have installed the default Debian 12 with an xfce4 desktop which
runs Network Manager to configure network connections etc.  I want
dnsmasq to provide a cacheing DNS service but Network Manager writes
/etc/resolv.conf at start-up (and if it's restarted) to be:-

    # Generated by NetworkManager
    search zbmc.eu
    nameserver 192.168.1.1

So that stops DNS requests going via dnsmasq, they just go straight to
my router at 192.168.1.1.  

So, is this supposed to work nicely together somehow or do I have to
do something radical to stop Network Manager writing /etc/resolv.conf?

-- 
Chris Green



More information about the Dnsmasq-discuss mailing list