OpenBSD: How to avoid resolv.conf to be touched by dhclient


I prefer to provide DNS address of my choice instead those from my network provider. Usually OpenDNS servers are a good option.

So, to avoid dhclient touch ‘/etc/resolv.conf’ I configure the /etc/dhclient.conf as follows:

initial-interval 1;
send host-name “myhostname”;
#request subnet-mask, broadcast-address, routers, domain-name,
#       domain-name-servers, host-name;
#send dhcp-lease-time 3600;
supersede domain-name-servers 208.67.222.222, 208.67.220.220 ;
supersede domain-name “”;
request subnet-mask, broadcast-address, routers;

And /etc/resolv.conf.tail :

lookup file bind

 

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in BSD, OpenBSD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s