SystemD’s implementation of resolved works well enough if you don’t have a lab or internal DNS servers like I have. I have found that it is easiest to manage DNS on Ubuntu if you disable resolved entirely. This post will walk you through the process.
Run the following commands to disable the resolved service:
# systemctl disable systemd-logind # systemctl stop systemd-logind
Remove the symlinked resolv.conf file
# rm /etc/resolv.conf
And finally create your new resolv.conf file
# emacs /etc/resolv.conf
Add in your DNS servers and search domain:
nameserver 192.168.0.2 nameserver 192.168.0.3 search admintome.home
Save the file and you’re done.