From owner-freebsd-questions Thu Mar 14 6:23: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-64-219-21-235.dsl.crchtx.swbell.net [64.219.21.235]) by hub.freebsd.org (Postfix) with ESMTP id 3FD5C37B416 for ; Thu, 14 Mar 2002 06:22:52 -0800 (PST) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g2EEIhr24357; Thu, 14 Mar 2002 08:18:44 -0600 (CST) (envelope-from admin@sage-one.net) Message-Id: <3.0.5.32.20020314081841.01178868@mail.sage-one.net> X-Sender: admin@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 14 Mar 2002 08:18:41 -0600 To: "Brian T.Schellenberger" , Beech Rintoul , freebsd-questions@FreeBSD.ORG From: Server Admin Subject: Re: Stop overwrite of resolv.conf In-Reply-To: <20020314055327.B51ACBA05@i8k.babbleon.org> References: <3.0.5.32.20020313175953.01178868@mail.sage-one.net> <3.0.5.32.20020313164008.01178868@mail.sage-one.net> <3.0.5.32.20020313175953.01178868@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brian: Thanks for the pointer. Guess I was having a "senior moment" and did not remember this was a ppp thing, but now have disabled it. A question remaining is though, to get the system to re-read the resolv.conf, I'm guessing this is the command according to the ppp man pages -- correct?: #ppp -resolv reload At 12:53 AM 3.14.2002 -0500, Brian T.Schellenberger wrote: >On Wednesday 13 March 2002 06:59 pm, Server Admin wrote: >| No, it's not a dhclient. I should have been more clear. >| >| I'm running DSL over PPPoE and get dynamic IP on a reboot/reconnect > > >>From the ppp man pages: > > Alternatively, if the peer supports it, ppp can be configured to ask > the peer for the nameserver address(es) and to update > /etc/resolv.conf automatically. Refer to the ``enable dns'' and > ``resolv'' commands below for details. > > > >| and it >| messes with the resolv.conf, but only part of it. Am running as caching >| nameserver, and have localhost IP line in the resolv.conf as per >| named.conf. So, my resolve looks like this: >| >| BEFORE REBOOT: >| domain mydomain.net >| search mydomain.net >| nameserver 127.0.0.1 >| nameserver xxx.xxx.xx.201 >| nameserver xxx.xxx.xx.201 >| >| AFTER REBOOT: >| domain mydomain.net >| search mydomain.net >| nameserver xxx.xxx.xx.201 >| nameserver xxx.xxx.xx.201 >| >| As shown, the localhost gets removed and stops using my localhost >| nameserver to first look for DNS in the local cache instead of outside. So, >| after reboot, I have to overwrite the resolv.conf and reload into memory to >| make it stop looking outside first for DNS. >| >| I think it's because of "dns enable" set in the ppp.conf. Can I comment >| that out of ppp and not upset anything else...??? That would probably leave >| the resolv file alone. >| >| At 02:05 PM 3.13.2002 -0900, Beech Rintoul wrote: >| >On Wednesday 13 March 2002 01:40 pm, Server Admin wrote: >| >> On reboot, my resolv.conf gets (partially) overwritten and I don't want >| >> it to do that. I know there is a way to stop this. This very thing was >| >> answered several months ago, but I cannot locate the answer. Please.... >| >> anyone? >| >> .... our website: http://www.sage-one.net/ >| >> >| >> Best regards, >| >> >| >> Jack L. Stone >| >> Server Admin >| > >| >If this is because of DHCP issues add the following to /etc/dhclient.conf. >| > >| >interface "ep0" { >| > supersede domain-name "yourdomain.com"; >| > prepend domain-name-servers 111.222.333.444; >| >} >| > >| >see man dhclient.conf for more details >| > >| >Beech >| >-- >| >------------------------------------------------------------------- >| >Beech Rintoul - IT Manager - Instructor - akbeech@anchoragerescue.org >| >/"\ ASCII Ribbon Campaign | Anchorage Gospel Rescue Mission >| >\ / - NO HTML/RTF in e-mail | P.O. Box 230510 >| > X - NO Word docs in e-mail | Anchorage, AK 99523-0510 >| >/ \ ----------------------------------------------------------------- >| >| .... our website: http://www.sage-one.net/ >| >| Best regards, >| >| Jack L. Stone >| Server Admin >| >| To Unsubscribe: send mail to majordomo@FreeBSD.org >| with "unsubscribe freebsd-questions" in the body of the message > >-- >Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) >Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > ME --> http://www.babbleon.org >http://www.eff.org <-- GOOD GUYS --> http://www.programming-freedom.org > > .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message