From owner-freebsd-net Fri Jun 9 18: 0:18 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id C2C9837B6E8; Fri, 9 Jun 2000 18:00:10 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA14801; Sat, 10 Jun 2000 02:01:22 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id CAA01989; Sat, 10 Jun 2000 02:01:19 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006100101.CAA01989@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: xuc@mcbi-34.med.nyu.edu Cc: Brian Somers , freebsd-net@FreeBSD.ORG, questions@FreeBSD.ORG, brian@hak.lan.awfulhak.org Subject: Re: ppp delete the line "nameserver 127.0.0.1" in resolv.conf In-Reply-To: Message from Chen Xu of "Fri, 09 Jun 2000 18:05:04 EDT." <20000609180504.A993@saturn.med.nyu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Jun 2000 02:01:17 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org You need to remove the line saying ``enable dns'' from your ppp.conf. See the man page. > Greetings, > > I guess you can give me the anwser. > > I have two FreeBSD boxes at home as LAN. Like this: > > ppp ether > my ISP <---> box1 -------- box2 > > box1(FreeBSD3.2) is the gateway, connecting outside "ppp -auto -alias > myisp". Works fine. It also runs DNS server for the local host names > resolving. Box2 running 4.0-stable. Everything worked fine without > connecting via ppp (both boxes can see each other by DNS). BUT, after > ppp connection to outside after 1 minute or so, the line (in the > /etc/resolv.conf) > > "nameserver 127.0.0.1" will be deleted from the file. The next to > entries will stay. > > /etc/resolv.conf > ========================= > domain home <---- stay > nameserver 127.0.0.1 <------- this line will be deleted > nameserver 11.22.33.44 < --- stay > nameserver 55.66.77.88 < --- stay > ========================= > > the lone added here "nameserver 127.0.0.1" is just the the local DNS. In > the box1 which is the NDS server, it makes sense as it points to itself. > The domian "home" is the actaul name I give to my home LAN. Don't know > if that's something wrong. > > After ppp connection is established for 1 or 2 minutes, the first line > is deleted box1 cannnot see box2 anymore. Seeing outside still OK. Box2 > can see box1 and outside. > > Even I set the mode of /etc/resolv.conf as read-only, it still changes > every time I make ppp connection. > > What's wrong? > > -- > Chen Xu > xuchen66@yahoo.com, xuc@saturn.med.nyu.edu -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message