[Dnsmasq-discuss] (no subject)

richardvoigt at gmail.com richardvoigt at gmail.com
Thu Jan 17 18:19:50 GMT 2013


>From your symptoms, I believe you aren't sending SIGHUP correctly, and
dnsmasq picks up the change after a minute due to its /etc/hosts polling.

dnsmasq uses multiple processes when seteuid behavior is enabled, so you
might be signalling the wrong one.


On Thu, Jan 17, 2013 at 11:51 AM, Eric Vance <epvance at gmail.com> wrote:

> I'm using dnsmasq on an OpenWRT Router.
>
> I have the following set in /etc/dnsmasq.conf:
>
> local-ttl=0
> cache-size=0
>
> I believe that tells the client not to cache the dns (which I've
> confirmed) and it tells dnsmasq to not cache responses.
>
> Let's say I have this entry in my /etc/hosts file:
>
>  192.168.1.1    mydomain.com
>
> I have a cron job that changes this entry to this:
>
>  192.168.1.44    mydomain.com
>
> After the entry is changed in the hosts file I run this to hup:
>
>  kill -1 `pidof dnsmasq`;
>
> From my testing, after I change the ip and run the hup it takes about 30 -
> 60 seconds until the domain resolves to 192.168.1.44.  So, even after I
> make the change the name still resolves to 192.168.1.1 for a minute.
>
> What am I doing wrong?  Is there a better way to do this?  Is there a
> better way to Hup?  Am I missing an important setting?  Any help or
> suggestions would be appreciated!
>
> Thanks!
>
> Eric
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130117/521963f8/attachment-0001.html>


More information about the Dnsmasq-discuss mailing list