[Dnsmasq-discuss] Wrong configuration processing for multiply DHCP interfaces

Taras Taranenko Taras.Taranenko at kraftcom.de
Fri Jul 9 08:44:46 UTC 2021


Hi,

it looks like we have issue with configuring DHCP DNS OPT 6  for certain interface.
Here are some examples:

interface=eth2.11
dhcp-range=interface:eth2.11,10.11.1.2,10.11.1.201,7200
dhcp-option=interface:eth2.11,3,10.11.1.1
dhcp-option=interface:eth2.11,6,10.11.1.1

interface=eth2.12
dhcp-range=interface:eth2.12,10.12.1.2,10.12.1.201,7200
dhcp-option=interface:eth2.12,3,10.12.1.1
dhcp-option=interface:eth2.12,6,10.12.1.1

interface=eth2
dhcp-range=eth2,10.0.1.2,10.0.1.201,7200
dhcp-option=interface:eth2,3,10.0.1.1
dhcp-option=interface:eth2,6,10.0.1.1

In such setup, dnsmasq does not including
OPTION:   6 (  4) DNS server                10.0.1.1
Into DHCPACK messages send to eth2, but perfectly sending correct DNS IPs to eth2.11 and eth2.12.

I found that even if I have one interface configured and using configuration option of
dhcp-option=interface:eth2,6,10.0.1.1
instead of
dhcp-option=6,10.0.1.1
I will not get DNS server in responses. Router IP BTW always correct with both variants of configuration.

As for me it looks like a bug.
Thanx for looking into it.

Best regards,
Taras Taranenko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210709/5d70bb4e/attachment.htm>


More information about the Dnsmasq-discuss mailing list