From owner-freebsd-current@FreeBSD.ORG Wed Oct 27 20:57:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570DF16A4CE for ; Wed, 27 Oct 2004 20:57:40 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B97F43D54 for ; Wed, 27 Oct 2004 20:57:40 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id i9RKvV7D059599; Wed, 27 Oct 2004 13:57:31 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id i9RKvUDs059598; Wed, 27 Oct 2004 13:57:30 -0700 (PDT) (envelope-from obrien) Date: Wed, 27 Oct 2004 13:57:30 -0700 From: "David O'Brien" To: Oliver Lehmann , freebsd-current@freebsd.org Message-ID: <20041027205730.GA59489@dragon.nuxi.com> References: <20041027224512.2e3b2ae8.lehmann@ans-netz.de> <20041027204852.GY95878@horsey.gshapiro.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041027204852.GY95878@horsey.gshapiro.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Subject: Re: dhclient trashes my resolv.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-current@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 20:57:40 -0000 On Wed, Oct 27, 2004 at 01:48:52PM -0700, Gregory Neil Shapiro wrote: > > when I start "dhclient ep1" to use DHCP for ep1, it kicks of my > > /etc/resolv.conf which is a really bad thing. I don't want to use the NS > > which is propagated through DHCP. That system does it's own DNS. And > > regarding to /sbin/dhclient-script, it can't be disabled. Am I right? If > > so, I should fill a PR, right? > > Putting this in /etc/dhclient-enter-hooks should prevent any resolv.conf > changes: > > !/bin/sh > > # Don't replace /etc/resolv.conf > make_resolv_conf() { > } You can also use /etc/dhclient.conf to control dhclient. # $FreeBSD: src/etc/dhclient.conf,v 1.3 2001/10/27 03:14:37 rwatson Exp $ # # This file is required by the ISC DHCP client. # See ``man 5 dhclient.conf'' for details. # # In most cases an empty file is sufficient for most people as the # defaults are usually fine. # supersede domain-name "nuxi.org freebsd.org"; "domain-name-servers" is one of the knobs want to tweak. -- -- David (obrien@FreeBSD.org)