On Tue, Apr 26, 2005 at 11:40:13AM +0100, Simon Kelley wrote: > Leonardo Canducci wrote: > >Package: dnsmasq > >Version: 2.22-1 > >Severity: important > > > > > >I'm using dnsmasq with resolvconf and pppoe with 'usepeerdns' option set > >for pppd. > >At boot time since dnsmasq is started before pppd gets DNS from ISP > >('usepeerdns' option) when it reads /var/run/dnsmasq/resolv.conf the > >file is empty. That way dnsmasq is not usable at all nor it is updated > >when, just a few seconds later, pppd gets its DNS servers from ISP and > >resolvconf appends them to /var/run/dnsmasq/resolv.conf. > >Restarting dnsmasq fixes the problem, but documentation suggests that > >kind of configuration should work 'out of the box'. > > > > Do you run an NTP client as part of the start sequence? Dnsmasq checks > the modification time of the resolv.conf file and re-reads the file when > the modification time changes. It's possible that an NTP client > warping the clock could confuse this.
I do run ntpdate. It fails at boot since pool.ntp.org is unreacheable until pppd gets its dns servers. A script called /etc/ppp/ip-up.d/ntpdate is run just after pppd gets IP and dns servers and time is adjusted. Usually step time is under 3 seconds so it shouldn't affect dnsmasq check AFAIK. from syslog I see: Apr 26 08:48:49 cervellone pppd[3127]: primary DNS address 80.17.209.xxx ls --full-time /var/run/dnsmasq/resolv.conf -rw-r--r-- 1 root root 49 2005-04-26 08:48:49.230005584 +0200 /var/run/dnsmasq/resolv.conf the file lists two dns servers. from syslog I see: Apr 26 08:48:34 cervellone dnsmasq[3954]: reading /var/run/dnsmasq/resolv.conf and no further checks. after sudo /etc/init.d/dnsmasq restart, from syslog: Apr 26 16:58:25 cervellone dnsmasq[12827]: using nameserver 80.17.209.xxx#53 and dnsmasq works fine. possible cause: maybe dnsmasq checks the modification time of /var/run/dnsmasq/resolv.conf with one minute precision. if so this file can be created and updated within a minute so file is considered unchanged. bye > > Cheers, > > Simon. > > -- Leonardo Canducci GPG Key ID: 429683DA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]