Changing DNS server

So agree, first check if the issue is somewhere else. But if you do need or want to change the DNS server (also for privacy reasons, you can do this:

sudo -i
mkdir /etc/systemd/resolved.conf.d
cp /etc/systemd/resolved.conf /etc/systemd/resolved.conf.d/override1.conf
# you should not change the original but create an override like this
nano /etc/systemd/resolved.conf.d/override1.conf

In here you can change the default DNS server to something you want. Privacytools List for encrypted DNS Servers, German PrivacyHandbuch for Europe Servers.

Example:

DNS=94.140.14.14 2a10:50c0::ad1:ff 94.140.15.15 2a10:50c0::ad2:ff
FallbackDNS=194.242.2.3 2a07:e340::3 194.242.2.4 2a07:e340::4

Cite from manpage: "A space-separated list of IPv4 and IPv6 addresses to use as system DNS servers. "

Of course you can also try 1.1.1.1, 9.9.9.9 or the like, but they are not any good for privacy, just for testing.

Manpage for resolved.conf

Know that when using a private DNS captive portals mostly dont work anymore.


Edit: Did this solve the problem?