For the time being, you might have noticed that the manual entry inside the file resolv.conf is getting reset and you can’t ping to the public domains. For the latest ubuntu releases, we should use resolvconf to edit the dns entries and all the manual entries added directly inside resolv.conf will be overwritten when resovconf triggers the service check
To edit the entries,
Add the entries (here I am using google dns) as below :
nameserver 184.108.40.206 nameserver 220.127.116.11
Restart the service as below :
service resolvconf restart
Now you can check your resolv.conf file and you would be able to see the manual entries replicated there.
root@test:~# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 18.104.22.168 nameserver 22.214.171.124