From owner-freebsd-questions@FreeBSD.ORG Thu Jun 13 12:02:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BFD485BA for ; Thu, 13 Jun 2013 12:02:57 +0000 (UTC) (envelope-from lolox-freebsd@lolox.net) Received: from altenberg.lolox.net (unknown [IPv6:2001:41d0:2:17c5::]) by mx1.freebsd.org (Postfix) with ESMTP id 82F471938 for ; Thu, 13 Jun 2013 12:02:57 +0000 (UTC) Received: from altenberg.lolox.net (localhost [127.0.0.1]) by altenberg.lolox.net (Postfix) with ESMTP id EB99B7F419; Thu, 13 Jun 2013 14:02:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lolox.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=lolox; t=1371124962; bh=Lbn3hDONig5Xa5kmDKFDO/nzAkpURONVl+6I/2UNWbk=; b=W7o4HNPiT+OP zekvCIOpx9jnegHDhVZCDNbkvj7/cYLrF/sI2TfNwXfO4dXDEHahbaHUrq1dQLiv MaZp3G8/OXENvizkhfqc+ExAMWQi/StBUI+Pybo+aSu9Ecyd3T4kq0Mco1XS5d5C d2QZxQ2G9zd7qKup6MFsxmdXbC+wV0E= X-Virus-Scanned: Mailstorm at lolox.net Received: from altenberg.lolox.net ([127.0.0.1]) by altenberg.lolox.net (altenberg.lolox.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NYPvQWTh78kQ; Thu, 13 Jun 2013 14:02:42 +0200 (CEST) Received: from orkher.lolox.net (ANancy-555-1-245-244.w90-33.abo.wanadoo.fr [90.33.141.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lolox@lolox.net) by altenberg.lolox.net (Postfix) with ESMTPSA id A62F97F3F4; Thu, 13 Jun 2013 14:02:41 +0200 (CEST) Message-ID: <51B9B4E5.6070209@lolox.net> Date: Thu, 13 Jun 2013 14:02:45 +0200 From: Loic Capdeville User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Darren Pilgrim Subject: Re: How to force a static /etc/resolv.conf? References: <51B91679.1070405@gmail.com> In-Reply-To: <51B91679.1070405@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jun 2013 12:02:57 -0000 On 13/06/2013 02:46, Darren Pilgrim wrote: > I'm running 9.1. I run a local recursive resolver, so my > /etc/resolv.conf needs to remain static. I have DHCPv4, DHCPv6 and VPN > clients running which all want to modify /etc/resolv.conf. I have set > in /etc/resolvconf.conf: > > search_domains="example.com. example.net." > name_servers="2001:db8::53" > > But that only prepends that information. Search domains and nameservers > from other sources still get included. I can set /etc/resolv.conf as > immutable, but's a hack and it generates errors from resolveconf. > > How do I tell resolvconf to always use a static configuration or, better > yet, to not muck with /etc/resolv.conf at all? > _______________________________________________ > 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" Hi, You can configure it in your dhclient.conf file. Use the supersede keyword. For example, in your case add: supersede domain-search "example.com example.net" supersede domain-name-servers 2001:db8::53 to your /etc/dhclient.conf Loic