Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 17:53:37 -0600
From:      Steve Price <sprice@hiwaay.net>
To:        Dennis Jun <dennisjun@home.com>
Cc:        freebsd-questions@FreeBSD.ORG, chat@gtabug.org
Subject:   Re: DNS caching, DHCP, /etc/resolv.conf
Message-ID:  <20010114175337.E65118@bonsai.knology.net>
In-Reply-To: <001201c07e83$80c5dc00$0300a8c0@wilma>; from dennisjun@home.com on Sun, Jan 14, 2001 at 06:41:22PM -0500
References:  <001201c07e83$80c5dc00$0300a8c0@wilma>

index | next in thread | previous in thread | raw e-mail

On Sun, Jan 14, 2001 at 06:41:22PM -0500, Dennis Jun wrote:
# Hello all!
# 
# I recently setup a DNS caching server with named. I followed the
# instructions in Lehey's "The Complete FreeBSD." However I'm on @home and I
# my ip settings via dhcp. Thus it resets my /etc/resolv.conf all the time,
# that is, it removes my first line of nameserver 127.0.0.1   I'm wondering
# how can prevert/remedy this? I guess most people would suggest a simple
# script cronned, but is there another solution?

The following manpage should have all the info you need.  Essentially
you'll have to teach this script to add 127.0.0.1 back to resolv.conf
when your box renegotiates its IP address.

        man 8 dhclient-script

-steve


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

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