Ubuntu 22: Setup DNS over TLS

Edit /etc/systemd/resolved.conf, make sure you set the following lines (notice the DNSSEC and DNSOverTLS):

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
DNSSEC=yes
DNSOverTLS=opportunistic
#MulticastDNS=no
#LLMNR=no
#Cache=no-negative
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

Then restart the services:

sudo systemctl restart systemd-resolved
sudo systemctl restart NetworkManager

My original intention with option DNSOverTLS set to opportunistic is to support Mikrotik’s Walled Garden Wifis that often hijack early connections to make sure you logged in first. — Thanks to opinion_no9 (From https://askubuntu.com/a/1111592/647986) for the option insights!

That being said, if you’re configuring your own computer that doesn’t move around, maybe just set it to yes to stop pesky ISPs sniffing your juicy Tokohijau Traffics.

References:

Issues to track:

Disclaimer:

Not all articles here are meant to be correct. My notes might be wrong or may no longer be relevant. If you want to try things here, please proceed with caution.


Posted

in

by

Tags: