Hi again,
it looks like I should be omitting using ‘interface:’ part in my configuration,
as soon as
dhcp-option=eth2,6,10.11.1.1
works just fine.
So please disregard this issue.

Best regards,
Taras Taranenko

From: Taras Taranenko <taras.tarane...@kraftcom.de>
Date: Friday, 9. July 2021 at 10:44
To: Dnsmasq-discuss@lists.thekelleys.org.uk 
<Dnsmasq-discuss@lists.thekelleys.org.uk>
Subject: Wrong configuration processing for multiply DHCP interfaces
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

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to