1

Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem)

I know I should not be manually editing /etc/resolv.conf in 16.04

What package(s) can I reinstall to get DNS resolution back to the pristine state for 16.04?

flymike
  • 287
  • 4
  • 14
  • 1
    You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer. – N0rbert Aug 04 '18 at 17:34
  • 1
    If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file. – Terrance Aug 04 '18 at 18:19

0 Answers0