Set contents of
[Resolve] DNS=184.108.40.206 220.127.116.11 Domains=~.
Apparently spaces are separators. Those are NextDNS servers in the example btw. NextDNS has not sponsored this post.
$ sudo service systemd-resolved restart
This was one of about two hundred million things that took me too long to figure out while setting up Ubuntu 20.04.
And in case you want to resolve single-label lookups,
systemd-resolved don’t do that.
apt install dnsmasq resolvconf
- Restart all teh things