HOWTO configure DNS on Ubuntu 19.04

As of Ubuntu 19.04, you no longer use /etc/resolv.conf for DNS servers.

Instead, edit /etc/systemd/resolved.conf and add DNS=8.8.8.8 8.8.4.4 (for example). Not this list must be space-delimited and not comma-delimited.

Then, run systemctl restart systemd-resolved.service to apply your changes.

Leave a comment

Your email address will not be published.