[OLSR-users] DNSMasq and Nameservice plugin
Cedric Krier
(spam-protected)
Wed Jul 12 13:29:16 CEST 2006
On 12/07/06 21:12 +1000, Dan Flett wrote:
> 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.
>
> Cheers,
>
> Dan
I have the same issue and didn't find any other solution than "killall -HUP
dnsmasq" in cron, but it works pretty well.
Cédric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20060712/a6690c3f/attachment.sig>
More information about the Olsr-users
mailing list