I am in the process of upgrading my production server from Ubuntu 14.04 to 18.04 and noticed that there is something called systemd-resolved
in 18.04 which run a local DNS cache of sorts. [1]
Why is this required? What is wrong with simply putting nameserver 1.1.1.1
or nameserver 8.8.8.8
in /etc/resolv.conf
and calling it a day? Is it safe to disable systemd-resolved
and revert to the simpler configuration?
[1] I noticed only because it is randomly crashing and causing all hostname lookups to fail, effectively crippling my app - https://askubuntu.com/questions/1117842/systemd-resolved-crashing-with-failed-to-set-up-mount-namespacing-invalid-argu
systemd-resolved
serve some other critical purpose and it's recommended to disable it?