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 22.214.171.124 nameserver 126.96.36.199
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 188.8.131.52 nameserver 184.108.40.206