Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2013 17:46:49 -0700
From:      Darren Pilgrim <darren.pilgrim@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   How to force a static /etc/resolv.conf?
Message-ID:  <51B91679.1070405@gmail.com>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51B91679.1070405>