Disable systemd-resolved on Ubuntu/Deb/CentOS

systemd-resolved provide DNS resolver facility in newer version of Linux servers running systemd.

I prefer manually editing /etc/resolv.conf and add resolvers. If you are running your own DNS server, then you need to disable systemd-resolved as it listen on port 53, with out disabling the service, you can’t start your DNS server.

To disable systemd-resolved, run

Or do the following.

Now create /etc/resolv.conf file

See resolv.conf, dns

Leave a Reply

Your email address will not be published. Required fields are marked *