# DNS-over-HTTPS packages

**URL:** <https://forum.openwrt.org/t/dns-over-https-packages/180102>\
**Category:** Installing and Using OpenWrt\
**Created:** [December 8, 2023, 8:15am UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102 "2023-12-08T08:15:18Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![0ttb](https://forum.openwrt.org/letter_avatar/0ttb/32/5_5575768a8748004e209b776fc1b2916d.png) [@0ttb](https://forum.openwrt.org/u/0ttb)\
**Post date:** [December 8, 2023, 8:15am UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/1 "2023-12-08T08:15:18Z")

</div>

Hey guys. What is the best package for DoH (DoT)? Especially for old 8/128 routers.

I've tried these for a long time each and there is my thoughts:

1. **dnscrypt-proxy2** — best of the best with true load balancing, a lot of options and can automatically update server's list. But! Too heavy — even 22.03 router reboots;
2. **https-dns-proxy** — average tool with load balancing (aka "choosing faster server") but router's load average often became 10 10 10 and it reboots too;
3. at this time i'm using **smartdns** — good tool, more options than https-dns-proxy and works a lot more stable.

And what tool are you using? What DoH is the best for OpenWRT?

---

<div class="post-metadata">

**Author:** ![Ramon](https://forum.openwrt.org/letter_avatar/ramon/32/5_5575768a8748004e209b776fc1b2916d.png) [@Ramon](https://forum.openwrt.org/u/Ramon)\
**Post date:** [December 8, 2023, 8:46am UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/2 "2023-12-08T08:46:58Z")

</div>

How about stubby?

---

<div class="post-metadata">

**Author:** ![efahl](https://forum.openwrt.org/user_avatar/forum.openwrt.org/efahl/32/50404_2.png) [@efahl](https://forum.openwrt.org/u/efahl)\
**Post date:** [December 8, 2023, 4:35pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/3 "2023-12-08T16:35:26Z")

</div>

I agree on stubby, although it's only DoT and not DoH, is good because it's so lightweight.

If DoH is a hard requirement, then I'd go with https-dns-proxy. Very well supported here on OpenWrt.

---

<div class="post-metadata">

**Author:** ![stangri](https://forum.openwrt.org/user_avatar/forum.openwrt.org/stangri/32/58_2.png) [@stangri](https://forum.openwrt.org/u/stangri)\
**Post date:** [December 8, 2023, 10:38pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/4 "2023-12-08T22:38:56Z")

</div>

If the router resources are a concern, https-dns-proxy is definitely a way to go. I've compared sizes reported by opkg info for the packages listed by OP and they are:  
https-dns-proxy: 21290  
smartdns: 136740 (6 times the size of https-dns-proxy)  
dnscrypt-proxy2: 4339330 (203 times the size of https-dns-proxy)

Now, stubby brought up by @Ramon and @efahl is also a small package (21089), but I don't have a positive personal experience with it.

The benefits of https-dns-proxy tho is that it reconfigures dnsmasq to use secure DNS on start and regular DNS when you stop https-dns-proxy, it has a great WebUI app allowing you to pick one of the pre-selected resolvers or configure customizable resolvers or add your own and upstream maintainers are pretty responsive to issues discovered/specific to OpenWrt.

PS. I don't think the "load balancing" works the way you think it works. AFAIK with both dnscrypt-proxy2 and https-dns-proxy it's up to dnsmasq to do the "load balancing" (simultaneous requests), not those proxy services. So if you rate them based on "load balancing", first of all -- why, they have nothing to do with it, and secondly, they are both then "best of the best with true load balancing".

PPS. If you're considering dnscrypt-proxy2 for the resource-strained router, you may as well replace dnsmasq+proxy with unbound at that point.

---

<div class="post-metadata">

**Author:** ![0ttb](https://forum.openwrt.org/letter_avatar/0ttb/32/5_5575768a8748004e209b776fc1b2916d.png) [@0ttb](https://forum.openwrt.org/u/0ttb)\
**Post date:** [December 9, 2023, 6:39am UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/5 "2023-12-09T06:39:22Z")

</div>

https-dns-proxy is a great tool but i have a bad expirience with v2023-05-25-3. If there is no any DNS activity some time and then it appears https-dns-proxy overload router's CPU and then it reboots. I don't know is there fix for this bug at this time.

---

<div class="post-metadata">

**Author:** ![stangri](https://forum.openwrt.org/user_avatar/forum.openwrt.org/stangri/32/58_2.png) [@stangri](https://forum.openwrt.org/u/stangri)\
**Post date:** [December 9, 2023, 12:06pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/6 "2023-12-09T12:06:55Z")

</div>

There have been quite a few updates since May, I'd advise you to always update to the newest version of both https-dns-proxy and luci-app-https-dns-proxy. I'm unaware of anyone else experiencing a similar issue.

---

<div class="post-metadata">

**Author:** ![0ttb](https://forum.openwrt.org/letter_avatar/0ttb/32/5_5575768a8748004e209b776fc1b2916d.png) [@0ttb](https://forum.openwrt.org/u/0ttb)\
**Post date:** [December 9, 2023, 3:41pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/7 "2023-12-09T15:41:45Z")

</div>

Unfortunately my Acrher C60 23.05 isn't even start when https-dns-proxy 2023-10-25-4 have 20 DNS servers in config. Default configuration with Google and CF work fine. At the same time smartdns can process 21 servers.

---

<div class="post-metadata">

**Author:** ![stangri](https://forum.openwrt.org/user_avatar/forum.openwrt.org/stangri/32/58_2.png) [@stangri](https://forum.openwrt.org/u/stangri)\
**Post date:** [December 10, 2023, 1:59am UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/8 "2023-12-10T01:59:37Z")

</div>

I never tested it with more than 4 resolvers, I'm pretty sure yours is a very rare use case, I'm glad you have found something that works.

---

<div class="post-metadata">

**Author:** ![Cybersim](https://forum.openwrt.org/letter_avatar/cybersim/32/5_5575768a8748004e209b776fc1b2916d.png) [@Cybersim](https://forum.openwrt.org/u/Cybersim)\
**Post date:** [May 9, 2025, 2:00pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/9 "2025-05-09T14:00:06Z")

</div>

Hi. Can you recommended please best and stable package for DoH.  
Router Asus AX-59U 512M Luci. OpenWrt 24.10.1 r28597-0425664679 / LuCI (HEAD detached at 2ac26e56) branch 25.103.51521~2ac26e5

---

<div class="post-metadata">

**Author:** ![efahl](https://forum.openwrt.org/user_avatar/forum.openwrt.org/efahl/32/50404_2.png) [@efahl](https://forum.openwrt.org/u/efahl)\
**Post date:** [May 9, 2025, 4:30pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/10 "2025-05-09T16:30:31Z")

</div>

**https-dns-proxy** is current best choice for most users.

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [May 9, 2025, 4:54pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/11 "2025-05-09T16:54:16Z")

</div>

Hasn't been built for some platforms though, due to a DNS glitch.

Might have changed in the last 48h or so, I don't keep track.

---

<div class="post-metadata">

**Author:** ![anon69864215](https://forum.openwrt.org/letter_avatar/anon69864215/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon69864215](https://forum.openwrt.org/u/anon69864215)\
**Post date:** [May 13, 2025, 10:27pm UTC](https://forum.openwrt.org/t/dns-over-https-packages/180102/12 "2025-05-13T22:27:14Z")

</div>

SmartDNS for me.  
It still fits on 16/64.  
I used to install https-dns-proxy but somehow it doesn't work and I'm too lazy to find out why.  
Then I installed SmartDNS because that's the package that still fits on 16/64 devices besides Stubby (where Stubby is not an option for me because ISPs easily bypass DoT).

I then installed SmartDNS on my other, more powerful router and enabling its AdBlock feature (Replaced DNSCrypt-proxy2 due to CPU hogging).

SmartDNS configuration is pretty simple (also has luci).

config server  
option enabled '1'  
option name 'AdGuard Non-filtering'  
option ip '[https://94.140.14.140:443/dns-query](https://94.140.14.140:443/dns-query)'  
option type 'https'

config server  
option enabled '1'  
option name 'AdGuard Non-filtering'  
option ip '[https://94.140.14.141:443/dns-query](https://94.140.14.141:443/dns-query)'  
option type 'https'

Because SmartDNS can use IP, the router can avoid Race conditions without further settings.  
This is useful for me who uses a lot of schedules on the router (yes I've had problems due to time out of sync).

And for AdBlock, it's simple.  
curl -s [https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/pro.txt](https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/pro.txt) [https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/tif.mini.txt](https://raw.githubusercontent.com/hagezi/dns-blocklists/main/dnsmasq/tif.mini.txt) | grep -Ev '^\s\*$|^#|^!' | sed 's/^local=/address /' | sed 's/$/#/' \> /etc/smartdns/adblock.conf  
And point it with a conf-file in /etc/smartdns/custom.conf  
It's nice to have a DNS encrypter package with adblocker so I don't have to install another package.

No problems so far, after disconnection, reboot or power outage.  
Just like DNSCrypt-proxy2, SmartDNS is a bit outdated compared to the GitHub version.  
But SmartDNS and DNSCrypt-proxy2 always work after an OpenWrt upgrade.  
SmartDNS is easy to configure, even for beginners like me.
