<div dir="ltr">Because the DHCP "name-server" attribute (option 6) carries only an IP address and not a port, this isn't going to work. The DHCP clients simply aren't written to configure DNS on any port other than 53.<div><br></div><div>Now, if your intent is for DHCP clients to use a different DNS server on the same host, one that is listening on port 53, all you need to do is to add the following line to your configuration (dnsmasq treats 0.0.0.0 as a placeholder for "its own address")</div><div><br></div><div>
<pre style="color:rgb(0,0,0);text-decoration-style:initial;text-decoration-color:initial">dhcp-option=6,0.0.0.0</pre>
<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 30, 2018 at 8:39 AM, Gordon Hsiao <span dir="ltr"><<a href="mailto:capcoding@gmail.com" target="_blank">capcoding@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If in my dnsmasq.conf I used a different port other than 53 for dns, dnsmasq never assigns DNS server to my dhcp clients, is this a feature or a bug? for port 53 everything works as expected, of course.<div><br></div><div>Thanks,</div><div>Gordon</div></div>
<br>______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><br>
<br></blockquote></div><br></div>