[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 comment