How to setup DNS over HTTPS systemwide?
Hello,
how can I setup DNS over HTTPS and DNSSEC systemwide?
I already tried it with dnscrypt-proxy, but it did not work.Not sure if it is enough to specify a server name in the config file and start the service.
I am also using NetworkManager.
Thank you!
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- jsiqpi
16 comments
dnscrypt-proxy is your best bet and it's super simple to setup by following the official guide they provide. but for a summary
Deleted before we saved it.
well that's a 4 month old edit lol, uncomment server_names not listen_addresses.
For the servers list, you take the name of the server not the sdns, for example when I open the link I put in my comment, there's a server called "a-and-a", put the name in the server_names so it be like this (if you only want to use the server you chose)
Or like this (and dnscrypt is going to pick the fastest server)
optional but recommended, set "require_dnssec" to true
Thank you very much, it worked.
I were missing step number 4, when I tried it on my own.
Do you maybe know how to setup eSNI systemwide, too? I could not find any resources for that.
An addition to step number 8:
If you use, NetworkManager it will tell your system to use the dns which it gets from the routers dhcp server. NetworkManager will clear your /etc/resolv.conf file.
To stop this, go to /etc/NetworkManager/conf.d/ and add a file (example: dns.conf).
Write this in that file:
[main]
dns=none
ESNI is currently only a draft nothing official yet, If you need it firefox had it for a while now behind a flag, if you have a lot of censorship in your country you could instead use a vpn or tor.
That's why we make reslov.conf unwritable so mostly NetworkManager doesn't modify it.
Is there an easy way to check if it is working? For example on a website?
I want to see if my windows virtual machine is using that, too.
systemctl status dnscrypt-proxy.service or get bind-tools and do nslookup on any domain.
For windows I believe you need to setup your dns settings to 127.0.0.1 and 9.9.9.9 (primary and secondary) and you can check if the service is running in (Services) You can change the quad9 servers to any other in the dnscrypt config.
systemd-resolved supports DNS over TLS if that would work for you
I already use that, but need DoH for using public wifi spots.
This one? Might want to check the github to see if additional config required after install.
https://www.archlinux.org/packages/community/x86_64/dns-over-https/
Also dns over https not on by default. SMH
Unfortunately, that package uses only Google and Cloudfare servers.
Straight from the github repo for that package I linked:
https://github.com/m13253/dns-over-https
You can most definitely point this at any DNS server you like and are in no way required to use google/cloudflare. It also is DNSSEC compatible and discusses how to use DNSSEC.
It doesn't look like the setup is easy if you need hand holding the whole way through, but you can certainly use this to achieve what you need. /u/-Waliullah