I spent nearly an hour looking for a guide to add a DNS server entry systemwide. The following did it in 2 lines. Hope this helps someone else
- Open
/etc/systemd/resolved.conf
- Under the
[Resolve]
section add the following:
[Resolve]
DNS={YOUR DNS SERVER ADDRESS}
FallbackDNS={FALLBACK DNS SERVER}
FallbackDNS={Add as many of these as you wish}
- Run
sudo systemctl restart systemd-resolved
&sudo systemctl restart NetworkManager
Profit