From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 15 12:47:17 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A1FE106566B for ; Fri, 15 Jun 2012 12:47:17 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0F9F38FC17 for ; Fri, 15 Jun 2012 12:47:16 +0000 (UTC) Received: by bkvi18 with SMTP id i18so2895065bkv.13 for ; Fri, 15 Jun 2012 05:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=jcpKhny7IAVN/ZOHaZwpVXxnLXAeKs1475OCdZQ3RDE=; b=EWbCpAjWfbOiNv8zxApidTB1zy+/pTUX0SV4sV4Cilwq2Sd0x2seZtH4lKXHVQfYuM leWiuZdYhRcKSzQl5p0EIT1V++iwQwtIwp1pO77/VtLX3z99ECJT2R74uU/lDpS6bLg2 z8uPl1fLsROoYJmbc36XnPgTiPcVrelTUJWoBf/Vnkx/XNJvhx3mbiCa0sxvXWQe7k5d OWSoFuT+F5xxoO6gBwQtn4Z5n597SPDymlJWzBpagRWZQjmqVniUSnrerq5Cvziglxnk 4+35cDu5e7CrMB73julTXz2ZKqhzsMIYEa2aDpV0MG+c4/+gIyKitboBDnBCHGSQ9D6q 1ESQ== Received: by 10.204.148.75 with SMTP id o11mr2865104bkv.11.1339764436033; Fri, 15 Jun 2012 05:47:16 -0700 (PDT) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id iq16sm10081199bkc.6.2012.06.15.05.47.13 (version=SSLv3 cipher=OTHER); Fri, 15 Jun 2012 05:47:14 -0700 (PDT) Message-ID: <4FDB2ECF.70304@gmail.com> Date: Fri, 15 Jun 2012 15:47:11 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120605 Firefox/12.0 SeaMonkey/2.9.1 MIME-Version: 1.0 To: Varuna References: <4FDB25E0.2070705@eudaemonicsystems.net> In-Reply-To: <4FDB25E0.2070705@eudaemonicsystems.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: /etc/resolv.conf getting over written with dhcp X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 12:47:17 -0000 Varuna wrote: > Hello Folks, > > Noticed a strange issue with the creation / update of /etc/resolv.conf. > The details of the system that I noticed the issue on is: > Version : FreeBSD 8.0 > Patch level: not patched > Uname: FreeBSD shastry.eudaemonicsystems.net 8.0-RELEASE FreeBSD > 8.0-RELEASE #0: Thu Sep 29 22:37:51 IST 2011 > root@shastry.bhuta.in:/usr/obj/usr/src/sys/SHASTRY i386 > > > I generally have a static IP 192.168.98.6 (via rc.conf) for my Beastie. > The contents of my /etc/resolv.conf is as follows: > domain eudaemonicsystems.net > nameserver 208.67.222.222 > nameserver 208.67.220.220 > nameserver 4.2.2.2 > No matter how many times I reboot the system, the resolv.conf does not > get overwritten when configured with a static IP. 1. Since 9.0 we already have resolveconf(8) for this. 2. Empty dhclient.conf means default configuration, you can make your own, refusing nameserver updates coming from DHCP. 3. You can always chflags noschg any precious file. -- Sphinx of black quartz judge my vow.