How to permanent change Ubuntu 18.04 /etc/resolv.conf ?
Setp 1 :
Change /run/systemd/resolve/resolv.conf , add the following recods:
nameserver 8.8.8.8
nameserver 127.0.0.53
options edns0
search your.domain.com
Step 2 :
remove the soft link /etc/resolv.conf
rm -rf /etc/resolv.conf
Step 3 : Create new soft link to file /run/systemd/resolv.conf
ln -s /run/systemd/resolv.conf /etc/resolv.conf
Add new comment