Setting search domain on modern systemd Linux systems


Want to be able to ssh nas instead of having to do ssh nas.local? What you use your own domain to get SSL working correctly for local hosts without having to ssh nas.mycustomdomainislongsohelpme.dog? Wondering why you can’t just add .local and mycustomdomainislongsohelpme.dog to the search field in the ol’ /etc/resolv.conf?

Systemd is eating everything. It ate resolvd. Now we have to configured systemd for local search.

Edit `/etc/systemd/resolved.conf, and add or change the following line:
Domains=local,mycustomdomainislongsohelpme.dog

Then sudo systemctl restart systemd-resolved

Now Bob is your uncle.