From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 08:25:19 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B7F716A400 for ; Fri, 26 Jan 2007 08:25:19 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id A1E6813C48A for ; Fri, 26 Jan 2007 08:25:16 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 26 Jan 2007 08:25:14 -0000 Received: from vpn-cl-162-68.rz.uni-karlsruhe.de (EHLO [141.3.162.68]) [141.3.162.68] by mail.gmx.net (mp005) with SMTP; 26 Jan 2007 09:25:14 +0100 X-Authenticated: #5465401 Message-ID: <45B9BB27.6070505@gmx.de> Date: Fri, 26 Jan 2007 09:26:15 +0100 From: "[LoN]Kamikaze" User-Agent: Thunderbird 1.5.0.9 (X11/20070120) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: dhclient overwrites reslov.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2007 08:25:19 -0000 I'm in a LAN with a relatively short lease time. That wouldn't be a problem if I wouldn't run a vpnc connection through this LAN. The vpnc connection sets /etc/resolv.conf as required, but dhclient overwrites it every couple of minutes, causing DNS not to work any more. Is there a way to make dhclient set up resolv.conf only when the IP of the interface is changed?