From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 15 13:51:39 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 BABCA106564A for ; Fri, 15 Jun 2012 13:51:39 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 7E3E28FC17 for ; Fri, 15 Jun 2012 13:51:39 +0000 (UTC) Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa05.fnfis.com (8.14.4/8.14.4) with ESMTP id q5FDp3Gh020567 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 15 Jun 2012 08:51:30 -0500 Received: from LTCFISWMSGMB21.FNFIS.com ([10.132.99.23]) by LTCFISWMSGHT03.FNFIS.com ([10.132.206.31]) with mapi id 14.02.0283.003; Fri, 15 Jun 2012 08:51:21 -0500 From: "Teske, Devin" To: Volodymyr Kostyrko Thread-Topic: /etc/resolv.conf getting over written with dhcp Thread-Index: AQHNSv3yznEnb+R6M0ql4JSdUMbymA== Date: Fri, 15 Jun 2012 13:51:21 +0000 Message-ID: <2E4FAA96-9C92-4B3F-A481-9D1D96C8517C@fisglobal.com> References: <4FDB25E0.2070705@eudaemonicsystems.net> <4FDB2ECF.70304@gmail.com> In-Reply-To: <4FDB2ECF.70304@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.14.152.61] Content-Type: text/plain; charset="us-ascii" Content-ID: <7318DA55225AA14CB874F30A732C0959@fisglobal.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855, 1.0.260, 0.0.0000 definitions=2012-06-15_04:2012-06-15, 2012-06-15, 1970-01-01 signatures=0 Cc: "" , Varuna 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 13:51:39 -0000 On Jun 15, 2012, at 5:47 AM, Volodymyr Kostyrko wrote: > Varuna wrote: >> Hello Folks, >>=20 >> 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 >>=20 >>=20 >> 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. >=20 > 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. >=20 schg to disallow changes. noschg is incorrect. --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.