This post was originally published on this site
The Issue
This is has been plaguing me for a while with one of my lab servers running 18.04.
No matter how many times I set my resolv.conf file, the contents revert back to a nameserver of 127.0.0.53.
The Cause
This is due to a bug in systemd that seems to have been resolved, but doesn’t seem to make it into all the versions. Based on my extensive googling (looking at first two hits).
The Fix
Run the following commands. Then edit your resolv.conf file as needed.
sudo rm /etc/resolv.conf sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf systemctl restart resolvconf Note: the resolv service needs installing for this to work sudo apt-get install -y resolvconf
(Source)
Regards
Follow @Saintdlehttps://platform.twitter.com/widgets.js
The post Ubuntu – DNS resolving fails, reverts back to 127.0.0.53 appeared first on vEducate.co.uk.