From owner-freebsd-questions Tue Jul 13 9:47:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from midway.gallantry.com (adsl-216-103-85-57.dsl.snfc21.pacbell.net [216.103.85.57]) by hub.freebsd.org (Postfix) with ESMTP id C8CDB1532D for ; Tue, 13 Jul 1999 09:47:15 -0700 (PDT) (envelope-from Jason@Liao.com) Received: from pop.gallantry.com (pop.gallantry.com [10.0.0.253]) by midway.gallantry.com (8.9.3/8.9.3) with ESMTP id JAA29757; Tue, 13 Jul 1999 09:47:15 -0700 (PDT) Received: from Liao.com (host-10-0-0-94.gallantry.com [10.0.0.94]) by pop.gallantry.com (8.9.3/8.9.3) with ESMTP id JAA28058; Tue, 13 Jul 1999 09:47:15 -0700 (PDT) Message-ID: <378B6D91.2981B441@Liao.com> Date: Tue, 13 Jul 1999 09:47:13 -0700 From: Jason Liao X-Mailer: Mozilla 4.6 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Mikhail Teterin Cc: questions@FreeBSD.ORG Subject: Re: how to stop dhclient from overwriting resolv.conf References: <199907130337.XAA21190@guest.newton> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just create an exit hook script /etc/dhclient-exit-hooks, which contains a single line: cp -f /etc/resolv.conf.keep /etc/resolv.conf Here /etc/resolv.conf.keep is a copy of my original resolv.conf file. Cheers, -- \\\\|||//// \ Jason Liao \ ~ ~ / \ mailto:Jason@Liao.COM | [@]~[@] | \ fax: 1-603-843-1662 | | | \ Do you see what I see? oOo----(O)----oOo---\-------------------------------- Mikhail Teterin wrote: > > Can't find this the FM-pages. Any hints? Thanks! > > -mi > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message