Dnsmasq issue (multiple instances)


i have the following problem:

Iam using multiple dnsmasq instances and i can see, that dnsmasq is putting wrong entries into /tmp/hosts/dhcp.*

And there is no way to clean that file. even if i stop and remove dnsmasq, it will be readded after restart with all the wrong entries :frowning: (the file is containing more then the entries for the networkj).

Because i dont know if that is and old issue my first question would be: can i somehow clean the files up, so they are rebuild?

Example entry (same for all, except names)

config dnsmasq 'iot_dns'
        option local_ttl '10'
        option domainneeded '1'
        option localise_queries '1'
        option local '/iot.<snip>/'
        option domain 'iot.<snip>'
        option expandhosts '1'
        option authoritative '1'
        option readethers '1'
        list notinterface 'loopback'
        list interface 'IOT'
        option logqueries '1'
        option rebind_protection '0'
        option filterwin2k '1'
        option leasefile '/persistent/dhcp.leases.iot'
        option localservice '1'
        option noresolv '1'

config dhcp 'IOT'
        option instance 'iot_dns'
        option interface 'IOT'
        option start '100'
        option limit '150'
        list domain 'iot.<snip>'
        option force '1'
        option ra 'server'
        option ra_management '2'
        option dhcpv6 'server'
        list dhcp_option '42,<snip>'
        list dhcp_option '6,<snip>'
        list dns '<snip>'
        option leasetime '2d'

it looks like, that the option "instance" for static leases are not working as exspected, ebcause i can find my static host in multiple generated dnsmasq configs. Ia running the current snapshot. Seems to be a bug ?

Found it!!! For some reason, the option was not set for all of my static entries. I have to fix that locally by editing my dhcp config file, run uci commit dhcp and restart dnsmasq.. now its fine !

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.