From owner-freebsd-questions@FreeBSD.ORG Thu Jun 13 00:46:49 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 23D521A3 for ; Thu, 13 Jun 2013 00:46:49 +0000 (UTC) (envelope-from darren.pilgrim@gmail.com) Received: from mail-pb0-x22e.google.com (mail-pb0-x22e.google.com [IPv6:2607:f8b0:400e:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id 02EA01CAF for ; Thu, 13 Jun 2013 00:46:48 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id rq2so4704483pbb.33 for ; Wed, 12 Jun 2013 17:46:48 -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:subject :content-type:content-transfer-encoding; bh=u6NTq3lnh40Ku/nrvLH6l+zKSy/CTFl9qwk1YplUATU=; b=VxjzFCSCgN5kTCCcIEDCsFyAWMgNbOc1+fjTm1O+/Wc1LVhL2KT4ZJiGJzUWHV+sca n0ZgJX8Pw7G4P7ACTAzIrDETZXs+EiiQLvd8R0D7bwRXyM1MpTT1sTpqM6ZthKEjF7tu HJrhxKedjKyFV9Ef2R710PiPID/4jxQlzGwdIWN9vdPLz6CzlXQ4lNS5ixC7T2QOl4VD Lud73Dxox6ZIYAra2gI3ZrYp06JhnPYS84mb94ZgnsQgHvkJB1JXXMaMHJUDukfgmmCc xTj5UkPlwMS9HcMP+ExZZLNnr+LZeJEirZC5AZchLFoBvpVCMJKznKP/WkwBcgAWI84X IKyw== X-Received: by 10.68.26.7 with SMTP id h7mr22333204pbg.187.1371084408162; Wed, 12 Jun 2013 17:46:48 -0700 (PDT) Received: from ?IPv6:2001:470:1f05:19b9:d8c0:1f3c:2a53:faa5? ([2001:470:1f05:19b9:d8c0:1f3c:2a53:faa5]) by mx.google.com with ESMTPSA id wt5sm20975793pbc.38.2013.06.12.17.46.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 17:46:47 -0700 (PDT) Message-ID: <51B91679.1070405@gmail.com> Date: Wed, 12 Jun 2013 17:46:49 -0700 From: Darren Pilgrim User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: How to force a static /etc/resolv.conf? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 00:46:49 -0000 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?