<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV 
style="FONT-SIZE: 12pt; FONT-FAMILY: 'DejaVu Sans Condensed'; COLOR: #000000">
<DIV>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.<BR><BR>--David<BR><BR></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT size=3 face="DejaVu Sans Condensed"></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=cl@isbd.net>Chris Green</A> 
</DIV>
<DIV><B>Sent:</B> Tuesday, November 5, 2024 2:59 PM</DIV>
<DIV><B>To:</B> <A 
title=dnsmasq-discuss@lists.thekelleys.org.uk>dnsmasq-discuss@lists.thekelleys.org.uk</A> 
</DIV>
<DIV><B>Subject:</B> [Dnsmasq-discuss] How to prevent Network Manager changing 
/etc/resolv.conf so dnsmasq doesn't cache?</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>I 
have just moved from xubuntu to debian and I'm trying to work out<BR>how to 
configure dnsmasq and Network Manager.<BR><BR>I have installed the default 
Debian 12 with an xfce4 desktop which<BR>runs Network Manager to configure 
network connections etc.  I want<BR>dnsmasq to provide a cacheing DNS 
service but Network Manager writes<BR>/etc/resolv.conf at start-up (and if it's 
restarted) to be:-<BR><BR>    # Generated by 
NetworkManager<BR>    search zbmc.eu<BR>    
nameserver 192.168.1.1<BR><BR>So that stops DNS requests going via dnsmasq, they 
just go straight to<BR>my router at 192.168.1.1.  <BR><BR>So, is this 
supposed to work nicely together somehow or do I have to<BR>do something radical 
to stop Network Manager writing /etc/resolv.conf?<BR><BR>-- <BR>Chris 
Green<BR><BR>_______________________________________________<BR>Dnsmasq-discuss 
mailing 
list<BR>Dnsmasq-discuss@lists.thekelleys.org.uk<BR>https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss<BR></DIV></DIV></DIV></BODY></HTML>