[Dnsmasq-discuss] uclinux dnsmasq wont poll

Simon Kelley simon at thekelleys.org.uk
Fri Jan 5 14:53:32 GMT 2007


Joel Lindsay wrote:
> Hi,
> 
> I am using dnsmasq with uclinux, I think the dnsmasq version is 1.8.
Are you sure it's version 1.8 - that's really, really old?

> 
> It seems to work great except the following caveat.
> 
> If I start dnsmasq from a shell script during init, it doesnt want to
> poll the resolv.conf file.  If I change this file, DNS masq doesn't
> add new DNS servers.  If I kill the process and restart it manually,
> using the exact same scripts and parameters, it works properly.
> 
> Any idea what might cause this behaviour?
> 
> I even tried starting the service as the final thing I do in my init
> scripts, to ensure nothing happening after it in init is causing the
> problem.  It still does not work properly, so after then logging in,
> killing the process and restarting it with my script it works fine.
> 
If you are using uclinux, then there's a fairly good chance that you're
using some embedded-type hardware which probably doesn't have a battery
backed real-time-clock. If the kernel's idea of the time is changing
radically during boot-up, (maybe because an NTP client starts?) then
this could confuse the polling, which is looking for at the modification
time of the file relative to the current time.

Later versions of dnsmasq are much more robust against strange stuff
like this, so upgrading to the latest version might be all that's needed.

Cheers,

Simon.



> 
> Joel Lindsay, B.Eng Project Engineer Waveteq Communications (250)
> 766-9229
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk 
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list