[Dnsmasq-discuss] No forgetting logic when using hostsdir
an0nym
an0nym at ya.ru
Sat May 16 17:07:59 BST 2020
Hello,
I hope you are safe and well.
When dnsmasq is configured to monitor hostsdir, I believe there is no
forgetting logic when you delete and then create or simply overwrite one of
the files there with different filter and the same allocated IP.
E. g.
# grep -F dhcp-hostsdir /etc/dnsmasq.conf
dhcp-hostsdir=/etc/dnsmasq.d/hosts.d
# echo "id:test,192.168.0.156" >/etc/dnsmasq.d/hosts.d/test.conf
# systemctl status dnsmasq
...
dnsmasq[21376]: inotify, new or changed file
/etc/dnsmasq.d/hosts.d/test.conf
dnsmasq-dhcp[21376]: read /etc/dnsmasq.d/hosts.d/test.conf
# echo "id:test2,192.168.0.156" >/etc/dnsmasq.d/hosts.d/test.conf
# systemctl status dnsmasq
...
dnsmasq[21376]: inotify, new or changed file
/etc/dnsmasq.d/hosts.d/test.conf
dnsmasq-dhcp[21376]: read /etc/dnsmasq.d/hosts.d/test.conf
dnsmasq[21376]: duplicate dhcp-host IP address 192.168.0.156 at line 1 of
/etc/dnsmasq.d/hosts.d/test.conf
Dnsmasq 2.80. Apologies if this has been fixed in 2.81, I did not succeed
in compiling from sources to check.
I hope this helps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200516/341b9659/attachment.html>
More information about the Dnsmasq-discuss
mailing list