[Bug 946754] Re: dnsmasq does not respect/watch '/etc/hosts' updates
Paul Sladen
ubuntu at paul.sladen.org
Mon Mar 5 10:37:13 UTC 2012
Had a reply from Simon Kelly (upstream). The worry is about race
conditions and reading /etc/hosts or resolv.conf after the 'mtime' has
been changed, but before the file has been completely written out
(dnsmasq already tries to backoff and schedule a re-read a couple of
seconds late if it finds an incomplete file). The preferred solution is
for the process modifying the appropriate file to manually send:
sudo killall -HUP dnsmasq
to the process.
Currently (on Ubuntu) dnsmasq is run as uid='nobody', so these needs
elevated privileges (which are needed anyway for editing those files).
This is okay for a human, but is less automatic than the previous
situation where /etc/hosts was being watched.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/946754
Title:
dnsmasq does not respect/watch '/etc/hosts' updates
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/946754/+subscriptions
More information about the Ubuntu-server-bugs
mailing list