[Dnsmasq-discuss] No DNS server assigned to dhcp clients if port != 53 in dnsmasq.conf

richardvoigt at gmail.com richardvoigt at gmail.com
Sat Jun 30 18:26:44 BST 2018


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.

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")

dhcp-option=6,0.0.0.0



On Sat, Jun 30, 2018 at 8:39 AM, Gordon Hsiao <capcoding at gmail.com> wrote:

> 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.
>
> Thanks,
> Gordon
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180630/c9834261/attachment.html>


More information about the Dnsmasq-discuss mailing list