<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>
<div>
<div dir="ltr">For those Vlans set the DNS addresses to the other DNS servers. </div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
<div style="direction: ltr;" dir="auto">Sent from my iPhone. Please excuse typos and autocorrection errors. </div>
<div style="direction: ltr;" dir="auto"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Merriweather, Georgia, "Times New Roman", serif; text-indent: -30px; display: inline !important"><br>
</span></div>
<div style="text-indent: 0px; direction: ltr;" dir="auto"><span style="text-indent: -30px; display: inline !important;">“</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Merriweather, Georgia, "Times New Roman", serif; text-indent: -30px; display: inline !important">One
 of the saddest lessons of history is this: If we’ve been bamboozled long enough, we tend to reject any evidence of the bamboozle. We’re no longer interested in finding out the truth. The bamboozle has captured us. It’s simply too painful to acknowledge, even
 to ourselves, that we’ve been taken. Once you give a charlatan power over you, you almost never get it back.” - Carl Sagan</span></div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> on behalf of Tony Zhou <tonytzhou@gmail.com><br>
<b>Sent:</b> Thursday, April 20, 2023 9:18:51 PM<br>
<b>To:</b> dnsmasq-discuss@lists.thekelleys.org.uk <dnsmasq-discuss@lists.thekelleys.org.uk><br>
<b>Subject:</b> [Dnsmasq-discuss] Implement --no-dns-interface?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
I am running dnsmasq 2.86 on openwrt, and have multiple vlans in my <br>
network. dnsmasq works great for dhcp purposes (for both dynamic and <br>
static leases) that I need for all interfaces/vlans. However, some of <br>
the vlans I do not need/want to have dnsmasq providing dns, but another <br>
dns server for content filtering purposes.<br>
<br>
I'd prefer to keep both dns servers on the same host/router, but the way <br>
dnsmasq works, either binding to interfaces, or wildcard, binds to all <br>
port 53, so that the 2nd dns server can't bind.<br>
<br>
It appears that when dnsmasq is set to bind to interfaces, it has to <br>
either offer both dns and dhcp, or skip dhcp by "--no-dhcp-interface" <br>
argument, but there is no counterpart "--no-dns-interface".<br>
<br>
Setting port=0 disables dns service on all interfaces, which is not what <br>
I wanted as well.<br>
<br>
I did found there were two discussions regarding this:<br>
<br>
<a href="https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2011q4/005335.html">https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2011q4/005335.html</a><br>
<br>
<a href="https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q3/015429.html">https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2021q3/015429.html</a><br>
<br>
Running two instances of dnsmasq doesn't resolve this issue, since I <br>
still rely on dnsmasq's dhcp.<br>
<br>
<br>
Thanks.<br>
<br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
Dnsmasq-discuss@lists.thekelleys.org.uk<br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</div>
</span></font></div>
</body>
</html>