On Thu, Apr 28, 2005 at 03:19:41PM +0100, Simon Kelley wrote: > Leonardo Canducci wrote: > > > >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. > > The precision is one second, so that shouldn't be the problem. OTOH, the > code is such that if the time starts in the future, then warps backward, > then no checks will every be made until the time gets back to the first > value. > > Instead of restarting dnsmasq, can you do > > touch /var/run/dnsmasq/resolv.conf > > and see if that gets dnsmasq to re-read it? Note that dnsmasq will not > check and re-read the file until it sees a DNS query, so you'lll have to > do something like > > touch /var/run/dnsmasq/resolv.conf > dig mit.edu > > to see test this. since I'm using resolvconf I did: #touch /var/run/dnsmasq/resolv.conf $dig mit.edu
dnsmasq re-read the file and is now working. this morning: Apr 28 07:29:44 cervellone dnsmasq[3944]: reading /var/run/dnsmasq/resolv.conf Apr 28 07:29:59 cervellone pppd[3135]: primary DNS address 80.17.209.xxx Apr 28 07:30:00 cervellone ntpdate[4828]: step time server 82.219.3.xxx offset -3.932196 sec so pppd gets dns servers 15 seconds after the first dnsmasq check. then ntpdate (ppp/ip-up.d script) adjusts time but it's a 3 seconds only shift. /var/run/dnsmasq/resolv.conf should be newer (15-3=12 seconds newer) than the first one with no entries. I still can't get why dnsmasq is not checking the file since it's the first entry in /etc/resolv.conf and there's plenty of dns queries. thanks. bye -- Leonardo Canducci GPG Key ID: 429683DA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]