Host file from removed dnsmasq section remains in effect.
Username: Phil
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1448
Using OpenWrt trunk, if a dnsmasq section is removed from the dhcp uci file, its host file will remain in /tmp/hosts/
To replicate:
Set the content of /etc/config/dhcp to:
config dnsmasq 'foo'
config dnsmasq 'bar'
config 'domain' option instance 'bar' option name 'baz' option ip '127.1.1.1'
Run:
/etc/init.d/dnsmasq reload
Set the content of /etc/config/dhcp to:
config dnsmasq 'foo'
Run:
/etc/init.d/dnsmasq reload
The file /tmp/hosts/dhcp.bar still exists, and its content will remain in effect for connected clients.