From owner-freebsd-hackers Mon Dec 20 21:20:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from w2xo.pgh.pa.us (ipl-229-010.npt-sdsl.stargate.net [208.223.229.10]) by hub.freebsd.org (Postfix) with ESMTP id DC9F415393 for ; Mon, 20 Dec 1999 21:20:27 -0800 (PST) (envelope-from durham@w2xo.pgh.pa.us) Received: from w2xo.pgh.pa.us (shazam.internal [192.168.5.3]) by w2xo.pgh.pa.us (8.9.3/8.9.3) with ESMTP id FAA33285; Tue, 21 Dec 1999 05:18:21 GMT Message-ID: <385F0D9C.A1337448@w2xo.pgh.pa.us> Date: Tue, 21 Dec 1999 00:18:20 -0500 From: Jim Durham Organization: dis- X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Bjorn Danielsson , Ben Smithurst , der , Don Read , Mike Nowlin , Ruslan Ermilov Cc: freebsd hackers Subject: Re: Resolv.conf question References: <199912170143.RAA03627@mass.cdrom.com> <3859C580.A4B9FAD8@w2xo.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bjorn Danielsson wrote: > > Jim Durham wrote: > > The 3.3 Box is a local server on a disconnected LAN talking > > to a "remote" server that spools mail, which is grabbed by > > fetchmail. We are running PPP on-demand to the external > > server via a dial-up to an ISP. However, PPP only holds the > > line up from 8am-8pm and this is happening at 1:59am, coinciding > > with the "periodic daily" scripts from crontab. > > Try changing "netstat -i" to "netstat -ni" in the script > /etc/periodic/daily/420.status-network > > Maybe the reverse dns lookup done by netstat -i tries to activate > ppp which then wipes /etc/resolv.conf. Just a crazy idea... > > -- You are so correct. I actually found it by executing all the scripts in /etc/periodic/daily "by hand" until it changed the file. It was the network status script, as you surmised. Alex Derevyanko , also came to the same conclusion, so you two have to share the prize. Here's Alex's info: > I have the same problem few weeks ago - it's 'netstat -r' problem - it tryes to > resolve hostnames. Sometimes the cache on my caching nameserver was up-to-date, > and ppp doesn't ring, sometimes no. Change it to 'netstat -rn' > Thanks to all who replied. -- Jim Durham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message