2

Immediately after upgrading Ubuntu Server from 18.04 to 20.04 name resolution stopped working. If I edit /etc/resolv.conf and replace nameserver 127.0.0.1 with nameserver 8.8.8.8 then everything works until reboot when /etc/resolv.conf is overwritten again. I have read that it should be 127.0.0.53 in resolv.conf but mine is 127.0.0.1 and even setting it to 127.0.0.53 doesn't work.

I have read many similar problems but none have actual solutions just work arounds that don't address the problem. Any help finding the answer would be appriciated.

Melebius
  • 11,121
  • 8
  • 50
  • 77
KeithW
  • 31
  • 3
  • Here's how to disable resolved. [How to disable systemd-resolved in Ubuntu?](https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu) Afterwards, you can delete the /etc/resolv.conf symlink and make your own /etc/resolv.conf file. – Artur Meinild Sep 07 '20 at 18:57
  • 3
    Why would I want to disable the intended resolver though? This is not fixing the problem it is just a workaround. – KeithW Sep 07 '20 at 19:07
  • The [documentation for resolved](https://www.freedesktop.org/software/systemd/man/systemd-resolved.html#) explains the DNS settings and which configuration files to edit. – Artur Meinild Sep 07 '20 at 19:32
  • I have restored from backup to 18.04 – KeithW Sep 08 '20 at 17:04
  • Having the same problem. Been running Ubuntu 20.04 for about a year and it started happening suddenly. – Josh Oct 22 '21 at 14:59

0 Answers0