From owner-freebsd-questions Sat Mar 10 18: 4:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 3D81E37B718 for ; Sat, 10 Mar 2001 18:04:11 -0800 (PST) (envelope-from cjc@rfx-216-196-73-168.users.reflexcom.com) Received: from rfx-216-196-73-168.users.reflexcom.com ([216.196.73.168]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sat, 10 Mar 2001 18:02:10 -0800 Received: (from cjc@localhost) by rfx-216-196-73-168.users.reflexcom.com (8.11.1/8.11.1) id f2B24GZ83748; Sat, 10 Mar 2001 18:04:16 -0800 (PST) (envelope-from cjc) Date: Sat, 10 Mar 2001 18:04:16 -0800 From: "Crist J. Clark" To: Will Yardley Cc: questions@FreeBSD.ORG Subject: Re: resolv.conf / dhcp Message-ID: <20010310180416.F50418@rfx-216-196-73-168.users.reflex> Reply-To: cjclark@alum.mit.edu References: <3AAAC5A7.14CC3510@hq.newdream.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AAAC5A7.14CC3510@hq.newdream.net>; from william@hq.newdream.net on Sat, Mar 10, 2001 at 04:24:07PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Mar 10, 2001 at 04:24:07PM -0800, Will Yardley wrote: > a couple questions about this. > > does anyone have a simple solution to /etc/resolv.conf being overwritten > everytime the dhcp lease is renewed ?? i'm using dhclient and the dhcp > server is an obsd router / firewall $ man dhclient.conf . . . supersede { [ option declaration ] [, ... option declara- tion ]} If for some set of options the client should always use its own value rather than any value supplied by the server, these values can be defined in the supersede statement. The prepend statement prepend { [ option declaration ] [, ... option declara- tion ]} If for some set of options the client should use a value you supply, and then use the values supplied by the server, if any, these values can be defined in the prepend statement. The prepend statement can only be used for options which allow more than one value to be given. This restriction is not enforced - if violated, the results are unpredictable. The append statement append { [ option declaration ] [, ... option declaration ]} If for some set of options the client should first use the 4 dhclient.conf(5) dhclient.conf(5) values supplied by the server, if any, and then use values you supply, these values can be defined in the append statement. The append statement can only be used for options which allow more than one value to be given. This restriction is not enforced - if you ignore it, the behaviour will be unpredictable. . . . -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message