Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 17:59:53 -0600
From:      Server Admin <admin@sage-one.net>
To:        Beech Rintoul <akbeech@anchoragerescue.org>, freebsd-questions@freebsd.org
Subject:   Re: Stop overwrite of resolv.conf
Message-ID:  <3.0.5.32.20020313175953.01178868@mail.sage-one.net>
In-Reply-To: <20020313230521.3F2C5F8@nebula.anchoragerescue.org>
References:  <3.0.5.32.20020313164008.01178868@mail.sage-one.net> <3.0.5.32.20020313164008.01178868@mail.sage-one.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020313175953.01178868>