<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=NL link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi *,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I’m using dnsmasq with a few vlan interfaces and each interface is tagged.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>And running tests with pihole as well as native dnsmasq.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>An example on how this is setup in both cases (.i.e. pihole as well as native dnsmsaq):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>=====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US># Wired - vlan 210<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>interface=eth0.210<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>domain=wired.lan,192.168.210.0/24,local<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-range=set:vlan-210,192.168.210.11,192.168.210.99,168h<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-option=tag:vlan-210,option:router,192.168.210.241<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-option=tag:vlan-210,option:dns-server,192.168.210.235<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-option=tag:vlan-210,option:ntp-server,192.168.210.235<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-option=tag:vlan-210,option:domain-name,wired.lan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>=====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The idea behind this is that devices with multiple vlan interfaces have their IP’s registered with dhcp and dns.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The dhcp part seems to work – all interfaces have the correct IP details.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>However, the log has numerous wrong-address errors like this (i.e. pihole as well as native dnsmasq):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>=====<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPREQUEST(eth0.210) 192.168.210.201 bc:24:11:87:be:e5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPNAK(eth0.210) 192.168.210.201 bc:24:11:87:be:e5 wrong address<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPDISCOVER(eth0.210) bc:24:11:87:be:e5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPOFFER(eth0.210) 192.168.210.201 bc:24:11:87:be:e5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPREQUEST(eth0.210) 192.168.210.201 bc:24:11:87:be:e5<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Mar 24 09:02:03 dnsmasq-dhcp[49]: DHCPACK(eth0.210) 192.168.210.201 bc:24:11:87:be:e5 osiris<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>=====<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#C00000'>Question-1</span></b><span lang=EN-US>: where are these wrong-address messages coming from?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>If I look at the dhcp.leases (Pihole) or dnsmasq.leases (native dnsmasq) there is always one entry like this:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>1743408124 bc:24:11:87:be:e5 192.168.230.201 osiris *<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#C00000'>Question-2</span></b><span lang=EN-US>: why is there only an entry from the last vlan interface of (in this example) osiris? And not one for every vlan interface?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#C00000'>Question-3</span></b><span lang=EN-US>: the same applies for dns regestrations where there is only an entry for the last vlan interface?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have tried to force this dns regestration for all fqdn’s for each vlan using the following settings (i.e. pihole as well as native dnsmasq):<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-ignore-clid<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-fqdn<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dhcp-client-update<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>expand-hosts<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>domain-needed<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>domain=lan<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>local=/lan/<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Does the above ring any bells? Any suggestion?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>With warm regards – Will<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>