In the CentOS system, usually I directly change /etc/resolv.conf,
As a result, when I wanted to change Ubuntu this time, it was indeed written..
"Do not manually change this file, your changes will be overwritten"@@
So Google found it at once. The steps are as follows:
1. Modify the following files:
sudo vim /etc/resolvconf/resolv.conf.d/base
E.g:
nameserver 168.95.1.1
2. Update
sudo resolvconf -u
3. Use cat to view resolv.conf
It will change
cat /etc/resolv.conf
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 168.95.1.1
No Comment
Post your comment