Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2001 21:41:01 -0800
From:      Beech Rintoul <akbeech@anchoragerescue.org>
To:        Leonard Zettel <zettel@acm.org>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: resolv.conf overwrite
Message-ID:  <0104112141010B.04392@galaxy.anchoragerescue.org>
In-Reply-To: <3AD51271.25615AEB@acm.org>
References:  <3AD51271.25615AEB@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 11 April 2001 18:26, Leonard Zettel wrote:
> Following The Complete FreeBSD p 480 I created the following
> /etc/resolv.conf
>
> # Changed by Len Zettel 4/11/01
> #----------removed-------------
> # search
> # nameserver 192.168.0.185
> # ------------------------------
> # ---------Added---------------
> domain Oz.
> nameserver 204.254.120.6   # Bignet primary nameserver
> nameserver 204.254.120.7   # Bignet secondart nameserver
> #------------------------------------------------------
>
> I was then happy as a clam at high tide at being able
> to ping domain names on the net. :-)
> This looked like PROGRESS! (One step at a time division).
>
> Then I rebooted :-(
>
> /etc/resolv.conf now contained
>
> search
> nameserver 192.168.0.185
>
> Tentative conclusion: something in the boot sequence
> is fooling with (probably creating) /etc/resolv.conf
>
> So, what do I change to stop this?  Or should I not
> be trying to stop it?  And doing something else entirely?
> And where can I read about THAT?
>
> My access to the net is via DSL with a Windows machine as gateway
> running a package calle SyGate.  (Yes, technically DUMB, DUMB, DUMB)
> except for one thing: it works.  Even I got it working.  When (not IF,
> optimist that I am) I get Free BSD running well under this setup
> we'll work on changing it.  Hopefully a step at a time.
> Thanks for reading.
>    -LenZ-
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

Add the following to /etc/dhclient.conf:

interface "ep0"  {
	supersede domain-name-servers 204.254.120.6, 204.254.120.7;
}

Change ep0 to whatever your NIC is and include the " "

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
/ \ -----------------------------------------------------------------












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?0104112141010B.04392>