#easyway to get dns over https

1 messages · Page 1 of 1 (latest)

woven rivet
#

On Linux Mint 22.1 Cinnamon. Anyway easyway to setup dns over https system wide? I know it's fairly straightforward.

civic mountain
#

I think you can use systemd-resolved

#

Just searched and got to this:

sudo systemctl enable systemd-resolved
sudo systemctl start systemd-resolved

Check status:

systemctl status systemd-resolved

Step 2: Create a config for DNS over HTTPS

Create or edit /etc/systemd/resolved.conf.d/doh.conf (create directory if it doesn’t exist):

sudo mkdir -p /etc/systemd/resolved.conf.d
sudo nano /etc/systemd/resolved.conf.d/doh.conf

Paste the following content:

[Resolve]
DNS=1.1.1.1#cloudflare-dns.com
FallbackDNS=9.9.9.9#dns.quad9.net
DNSOverTLS=yes

Step 3: Restart systemd-resolved

sudo systemctl restart systemd-resolved

Step 4: Ensure your system uses systemd-resolved as the DNS resolver

Make sure /etc/resolv.conf is a symlink:

sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

You can verify it with:

ls -l /etc/resolv.conf

It should show:

/etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf

To verify DoH is active

Run:

resolvectl status

Look for:

DNSSEC supported by current servers: yes
DNS Over TLS: yes

Or use:

systemd-resolve --status

You should see your DNS servers listed with DNS over TLS active.

woven rivet
#

Well hopefully cinnamon gets an easyway eventually. KDE, you just open network manager. Put the dns numbers in and approiate link and reconnect