Dnscrypt-proxy2 vs dnscrypt-proxy vs?

Really unclear on a few things. I decided that I wanted to install dnscrypt-proxy as I heard some arguing that it is the most secure.

I initially followed this guide:
DNSCrypt with Dnsmasq and dnscrypt-proxy

I'm not sure if I was supposed to replace any of the references with real values, but what I did was run each line verbatim. The DNS Crypt Provider section ran fine (I tested a web page after the service restart).

However, the dnsmasq section left DNS in a broken state. (refreshing web page failed and browser said there was no internet). I quickly restored my router from backup.

I then read that this is an old version that is not maintained and that there is a new dnscrypt-proxy2. This however, is not available in the repo. I instead found luci-app-dnscrypt-proxy2 which I downloaded from git with winget and installed with opkg. It installed successfully and appeared in the installed packages but there was nothing under the Services menu in LUCI.

At this point I decided to ask for help since I'm not sure if I should be manually installing packages or not.

I'm on a TP-Link Archer AX23 v1
Target Platform: ramips/mt7621

Should I download the latest V2 version from git here?:
Latest GIT
the mt7621 appears to be 64bit MIPS

Should I just use the old one with better install instructions?

Should I be using https-dns-proxy instead?

Thanks for your attention.

I am quite certain it turns 128bit mips if you convince your AI chatbot long enough.

Download packages from official repos. Keywords for Luci/System/Software: "dnscrypt" "dns-proxy" "nextdns" "stubby" (choose one)

Instructionswithout luci: https://openwrt.org/docs/guide-user/firewall/fw3_configurations/intercept_dns

Sure is as of today:

root@RuralRoots:~# apk info dnscrypt-proxy2
dnscrypt-proxy2-2.1.15-r1 description:
A flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTPS.

dnscrypt-proxy2-2.1.15-r1 webpage:
https://github.com/DNSCrypt/dnscrypt-proxy

dnscrypt-proxy2-2.1.15-r1 installed size:
12 MiB

luci-app-dnscrypt-proxy2 is NOT an existing OpenWrt package.

dnscrypt-proxy2 is too large to install on my poor little router with only 5MB of storage free. Same goes for dnsproxy. https-dns-proxy will fit however.

Instructionswithout luci: https://openwrt.org/docs/guide-user/firewall/fw3_configurations/intercept_dns

Don't really understand what this is doing or how much of this to follow. Do I really want to Utilize banIP to filter DoH traffic forcing LAN clients to switch to plain DNS. for example?
I thought we were trying to do the opposite. Besides my router is using dnsmasq right now which it seems to suggest I avoid using. I'm really out of my depth as far as what to do with that.

Yeh, dnscrypt-proxy2 is a monster that way. If https-dns-proxy provides what you need, by all means use it. See Stangri’s site: https://docs.openwrt.melmac.ca/#https-dns-proxyluci-app-https-dns-proxy

OK, so I installed https-dns-proxy and the LUCI package to go with it. It shows cloudflare being the first server listed, yet when I go to 1.1.1.1/help. I get a NO for DOH. Why would that be?

$ nmcli dev show | grep DNS
IP4.DNS[1]:                             192.168.1.1
IP6.DNS[1]:                             fd0d:aeea:451b::1

Which is my router

DoH is not DNS, so DoH server addresses can't be passed down as values of DHCP "DNS server" options.

I don't know how the proxy setup is supposed to work. Maybe clients are supposed to talk normal DNS to the router and the translation to DoH is all within the router?

Exactly

You use dnmasq with dns53, but the upstream servers for dnsmasq are the doh servers you specify.
I am a happy user of https-dns-proxy

1 Like

Well now Cloudflare says YES to DoH. I guess we're done. Thanks all.

FYI, this is the guide I used. It's very straight forward. Basically just install it and change provider if you really want to.

DoH with Dnsmasq and https-dns-proxy

1 Like

I hope someone investigates the DNSCrypt with Dnsmasq and dnscrypt-proxy guide I posted at the beginning. I did break my DNS. Thank god I made a backup.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.