Date: Wed, 18 Apr 2007 09:23:54 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: yunikan@gmail.com Cc: freebsd-questions@freebsd.org Subject: Re: PPP and resolv.conf Message-ID: <44zm55ak9h.fsf@be-well.ilk.org> In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAPOytc9vInVGkl54LcL/nGDCgAAAEAAAACWb231uZqtHvEGPpCJ6pYoBAAAAAA==@gmail.com> (Richard Simmonds's message of "Wed\, 18 Apr 2007 17\:15\:36 %2B0800") References: <000d01c780b2$1303f930$0105a8c0@northamerica.corp.microsoft.com> <!&!AAAAAAAAAAAYAAAAAAAAAPOytc9vInVGkl54LcL/nGDCgAAAEAAAABUi1xQhdENMg1AFizNVJKYBAAAAAA==@gmail.com> <20070417181115.6e908026@gumby.homeunix.com> <!&!AAAAAAAAAAAYAAAAAAAAAPOytc9vInVGkl54LcL/nGDCgAAAEAAAACWb231uZqtHvEGPpCJ6pYoBAAAAAA==@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Richard Simmonds" <yunikan@gmail.com> 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" <yunikan@gmail.com> 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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44zm55ak9h.fsf>