Skip to content

Instantly share code, notes, and snippets.

@DavidEredics
Last active May 30, 2024 08:25
Show Gist options
  • Save DavidEredics/cbdf2acd65850cb5c3c27ca206243c33 to your computer and use it in GitHub Desktop.
Save DavidEredics/cbdf2acd65850cb5c3c27ca206243c33 to your computer and use it in GitHub Desktop.
Cloudflare DNS over TLS systemd resolved config
[Resolve]
DNS=1.1.1.1#1dot1dot1dot1.cloudflare-dns.com 1.0.0.1#1dot1dot1dot1.cloudflare-dns.com 2606:4700:4700::1111#1dot1dot1dot1.cloudflare-dns.com 2606:4700:4700::1001#1dot1dot1dot1.cloudflare-dns.com
DNSSEC=yes
DNSOverTLS=yes
@DavidEredics
Copy link
Author

Why are you using this weird domain instead of one.one.one.one? Are there any differences between one to another?

I don't know of any differences. If I remember correctly, I found the domain here:https://blog.cloudflare.com/enable-private-dns-with-1-1-1-1-on-android-9-pie, but I just checked and the systemd resolved.conf example has cloudflare-dns.com domain so probably I'll change it to that.

@cizordj
Copy link

cizordj commented May 20, 2024

I have tested and cloudflare-dns.com doesn't support DNS-over-TLS.

@DavidEredics
Copy link
Author

I have tested and cloudflare-dns.com doesn't support DNS-over-TLS.

I just tested it and you are right it doesn't support DoT, but than I don't understand why it is used as the example in the config file.
I'll change back to 1dot1dot1dot1.cloudflare-dns.com for now because it worked for me for years and I'll test one.one.one.one in the future if there are any differences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment