[CommandLine] – How to change DNS/resolv.conf into ubuntu? How don’t lost the changes after reboot the system?

Edit the head file as sudo and run the command for the “resolv.conf” file be automatically generated again.

# To edit as sudo

$ sudo vim /etc/resolvconf/resolv.conf.d/head

# To automatically generated the “resolv.conf” file

$ sudo resolvconf -u

Following an example of this configuration.

Screen Shot 2017-04-20 at 10.19.20 PM

1 Comment

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 )

Facebook photo

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

Connecting to %s