From owner-freebsd-questions@FreeBSD.ORG Fri May 30 13:35:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BECF37B401 for ; Fri, 30 May 2003 13:35:38 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1757243F85 for ; Fri, 30 May 2003 13:35:37 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h4UKZZV8028770; Fri, 30 May 2003 15:35:35 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [[UNIX: localhost]]) by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h4UKZZCk028769; Fri, 30 May 2003 15:35:35 -0500 (CDT) From: David Kelly To: Laszlo Vagner , questions@freebsd.org Date: Fri, 30 May 2003 15:35:35 -0500 User-Agent: KMail/1.5.2 References: <3ED79E49.30803@vagner.com> In-Reply-To: <3ED79E49.30803@vagner.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305301535.35126.dkelly@HiWAAY.net> Subject: Re: how to stop resolv.conf from being updated X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 20:35:38 -0000 On Friday 30 May 2003 01:09 pm, Laszlo Vagner wrote: > I am using DHCP on a cable modem and my > providers nameserver really sucks > but changing my resolv.conf repairs > the lookups for a little while then it gets > set back to them upon bootup. > > how do i make it stay the way i set it. IMHO all the other suggestions are less good than mine. The recommendation to chmod /etc/resolv.conf simply does not work. My suggestion is to create an /etc/dhclient-enter-hooks containing these 3 lines. The advantage is this survives upgrades and mergemaster. #/bin/sh make_resolv_conf() { } -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.