From owner-freebsd-qa Fri May 31 14:54:56 2002 Delivered-To: freebsd-qa@freebsd.org Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by hub.freebsd.org (Postfix) with ESMTP id 3BC0F37B403; Fri, 31 May 2002 14:54:51 -0700 (PDT) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.4.Beta0/8.12.4.Beta0) with ESMTP id g4VLsor7047689 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 31 May 2002 14:54:50 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.4.Beta0/8.12.4.Beta0/Submit) id g4VLsoO2047686; Fri, 31 May 2002 14:54:50 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15607.61738.128410.326284@horsey.gshapiro.net> Date: Fri, 31 May 2002 14:54:50 -0700 From: Gregory Neil Shapiro To: "Louis A. Mamakos" Cc: freebsd-qa@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: dhclient-enter-hooks (was Re: 4.6-RELEASE delayed) In-Reply-To: References: <200205311652.g4VGq5YV004136@intruder.bmah.org> <200205311832.g4VIW8IY091328@whizzo.transsys.com> X-Mailer: VM 7.00 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-qa@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> "ume" == Hajimu UMEMOTO writes: ume> Hi, >>>>> On Fri, 31 May 2002 14:32:08 -0400 >>>>> "Louis A. Mamakos" said: louie> You can't configure the "update /etc/resolv.conf" behavior, so I had louie> to manually edit the /sbin/dhclient-script to resolve this issue. ume> You can re-define make_resolv_conf() in /etc/dhclient-enter-hooks to ume> don't update /etc/resolv.conf. Please refer dhclient-script(8) ume> manpage. Here is what I use in mine in case it's useful. Personally, I think it should replace the default make_resolv_conf() in /sbin/dhclient-script as it is more intelligent -- it only replaces /etc/resolv.conf if something changes. make_resolv_conf() { # Don't replace /etc/resolv.conf unless something has changed if [ "$reason" != "RENEW" -o "$new_domain_name" != "$old_domain_name" -o \ "$new_domain_name_servers" != "$old_domain_name_servers" ] then echo search $new_domain_name >/etc/resolv.conf for nameserver in $new_domain_name_servers; do echo nameserver $nameserver >>/etc/resolv.conf done fi } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-qa" in the body of the message