From owner-freebsd-questions@FreeBSD.ORG Wed Apr 18 13:23:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 870B616A400 for ; Wed, 18 Apr 2007 13:23:56 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.4]) by mx1.freebsd.org (Postfix) with ESMTP id 618F713C457 for ; Wed, 18 Apr 2007 13:23:56 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 3380 invoked from network); 18 Apr 2007 13:23:55 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 18 Apr 2007 13:23:55 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id AA15828439; Wed, 18 Apr 2007 09:23:54 -0400 (EDT) To: yunikan@gmail.com References: <000d01c780b2$1303f930$0105a8c0@northamerica.corp.microsoft.com> <20070417181115.6e908026@gumby.homeunix.com> From: Lowell Gilbert Date: Wed, 18 Apr 2007 09:23:54 -0400 In-Reply-To: (Richard Simmonds's message of "Wed\, 18 Apr 2007 17\:15\:36 +0800") Message-ID: <44zm55ak9h.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: PPP and resolv.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2007 13:23:56 -0000 "Richard Simmonds" writes: > > > -----Original Message----- > From: RW [mailto:fbsd06@mlists.homeunix.com] > Sent: Wednesday, April 18, 2007 1:11 AM > To: freebsd-questions@freebsd.org > Cc: yunikan@gmail.com > Subject: Re: PPP and resolv.conf > > On Tue, 17 Apr 2007 14:48:25 +0800 > "Richard Simmonds" wrote: > >> >> >How can I stop ppp from modifying my /etc/resolv.conf? >> >Everytime I establish a pppoe session, my resolv.conf file gets >> reconfigured to my ISPs DNS Servers. >> >> It's dhclient, not ppp that's modding the file. > >>This is unlikely. PPP normally provides the dns server addresses itself, in > which case the suggestion to remove "enable dns" from ppp.conf is correct. > > Well, as always, YMMV. > > If the connection is providing a dynamic address via dhcp, as my ADSL > provider is, it appears to be dhclient that's updating resolv.conf so the > setup as stated works for me. I have 'enable dns' in my ppp.conf file as > well but my provider doesn't seem to be able to offer a dns server address > correctly, which is why I run one locally on the network. I suspect it is > probably a setup error on my part but I have neither the time or the > inclination to tinker with it any more than I have to. If DHCP is setting it, then use the "prepend" or "supersede" keywords on "domain-name-servers" in your dhclient.conf(5).