[Dnsmasq-discuss] How to prevent Network Manager changing /etc/resolv.conf so dnsmasq doesn't cache?
David Kronenwetter
dnsmasq1 at nmpu.com
Tue Nov 5 20:50:05 UTC 2024
The 192.168.1.1 is probably coming from DHCP? If so, configure your DHCP server to advertise the preferred DNS server. You could also configure your firewall to redirect all DNS requests to the preferred DNS server. Just make sure you don’t block dnsmasq in the process.
--David
From: Chris Green
Sent: Tuesday, November 5, 2024 2:59 PM
To: dnsmasq-discuss at lists.thekelleys.org.uk
Subject: [Dnsmasq-discuss] How to prevent Network Manager changing /etc/resolv.conf so dnsmasq doesn't cache?
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
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20241105/a16195e0/attachment.htm>
More information about the Dnsmasq-discuss
mailing list