How to avoid that my /etc/resolv.conf get overwriting

January 3, 2018 962 views
Linux Basics Ubuntu 16.04

Always I change my DNS in /etc/resolv.conf it change to :


What can I do ?

2 Answers

There should be a warning telling you not to edit resolv.conf. Edit /etc/network/interfaces instead.

Or edit /etc/resolvconf/resolveconf.d/base instead. This is used to build resolv.conf

Have another answer? Share your knowledge.