From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 11:05:02 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 924F316A402 for ; Fri, 26 Jan 2007 11:05:02 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2274B13C494 for ; Fri, 26 Jan 2007 11:05:01 +0000 (UTC) (envelope-from jeremy.gransden@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so1082910nfc for ; Fri, 26 Jan 2007 03:05:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qaQUa0O/Tflo4CknAMze1ZhJmQ7whfzBKDPqCuvDu6SYxQkHEF7pdvgtY8F4e32+uz1X917saVU8SkcrlJWao7l1sQ9CwBhMBIxeWc//gi5ayrExJ/ntSxbDqbAYOVGRFaG8htWjwVV0RBcV2CKFiPYkjOcVo4c2jx0jvZ7nezk= Received: by 10.82.120.14 with SMTP id s14mr1718391buc.1169807762822; Fri, 26 Jan 2007 02:36:02 -0800 (PST) Received: by 10.82.186.16 with HTTP; Fri, 26 Jan 2007 02:36:02 -0800 (PST) Message-ID: <87f7f4170701260236i31648517q8cde1386417dbaf@mail.gmail.com> Date: Fri, 26 Jan 2007 05:36:02 -0500 From: "Jeremy Gransden" To: "[LoN]Kamikaze" In-Reply-To: <45B9BB27.6070505@gmx.de> MIME-Version: 1.0 References: <45B9BB27.6070505@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 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 11:05:02 -0000 On 1/26/07, [LoN]Kamikaze wrote: > > 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? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > take a look at the /etc/dhclient.conf man page. You can add a line to set dns servers. example: # $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. # prepend domain-name-server 130.253.166.41; just change 130.253.166.41 with the correct value jeremy