[OLSR-users] DNSMasq and Nameservice plugin

Dan Flett (spam-protected)
Wed Jul 12 13:12:35 CEST 2006

Hi all,

Just wondering - is anyone actively using the nameservice plugin in
conjunction with dnsmasq?

As you probably know, dnsmasq can serve hosts files via it's DNS server.
But dnsmasq doesn't automatically poll /etc/hosts - it must receive a SIGHUP
signal to re-read it.

The nameservice plugin re-writes /etc/hosts (or other specified output file)
whenever it receives new information.

Does anyone have any suggestions as to the best way to keep dnsmasq updated
whenever /etc/hosts changes, that preferably avoids a race condition?

My only idea is to set up a cron job to send a SIGHUP to dnsmasq at regular
intervals.  It'd be nice to have something that is a bit more intelligent.



More information about the Olsr-users mailing list