You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for the great software that is unbound! I think it would be really great if unbound integrated DOH support natively :)
Reacted by Aminda Suomalainen ⚧, Robert Palmer, Chih-Hsuan Yen, Dan Nelson, Navi Kescher, Günter Grodotzki, Agneev Mukherjee, Peter Dave Hello, Ilya_MZP, Matt Evan and 20 more
Yes, if you seek those features then it can solve your request. The code there is usable right now if you want it in beta.
If you wanted DOH towards upstream servers, then this is a new feature. And it should wait for the already referenced DoH implementation, and also for socket reuse changes that are upcoming. It would be prudent to then first resolve bugs in that code. And then start thinking about this feature.
@wcawijngaards Looks like the the socket reuse feature is ready in version 1.13.2? (with fixes #513 included). The only remaining issue might be that streams may not be reused on Windows (#516).
I have it successfully using DOT (DNS over TLS) which is great
#forward-ssl-upstream: yes - is the instruction to use DNS over TLS, in this case for all queries (name: “.”)
server:
tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
forward-zone:
name: "."
forward-tls-upstream: yes
# Cloudflare DNS
forward-addr: 1.1.1.1@853#cloudflare-dns.com
forward-addr: 1.0.0.1@853#cloudflare-dns.com
#forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
#forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
# NordVPN
#forward-addr: 103.86.96.100@853#dns1.nordvpn.com
#forward-addr: 103.86.99.100@853#dns2.nordvpn.com
# Quad9
#forward-addr: 2620:fe::fe@853#dns.quad9.net
#forward-addr: 9.9.9.9@853#dns.quad9.net
#forward-addr: 2620:fe::9@853#dns.quad9.net
#forward-addr: 149.112.112.112@853#dns.quad9.net
Reacted by Agneev Mukherjee, mister2d, stm32repo, Zike Xu and SeriousHoax
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
Reacted by David Refoua, Nathan, stm32repo, Gruak and zcchm
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
I agree. My current workaround is using Unbound to pass DNS queries to a local cloudflared DOH proxy. Has been working great.
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
I agree. My current workaround is using Unbound to pass DNS queries to a local cloudflared DOH proxy. Has been working great.
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
I agree. My current workaround is using Unbound to pass DNS queries to a local cloudflared DOH proxy. Has been working great.
Can you post your config please?
It's terribly simple. I have a separate cloudflared DoH proxy listening on 127.0.0.1:5053 with an unbound forward-zone configured to 127.0.0.1@5053.
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
I agree. My current workaround is using Unbound to pass DNS queries to a local cloudflared DOH proxy. Has been working great.
Can you post your config please?
It's terribly simple. I have a separate cloudflared DoH proxy listening on 127.0.0.1:5053 with an unbound forward-zone configured to 127.0.0.1@5053.
I've got DoH working but not in unbound. The fix for now is to use unbound as a caching only, and forward to a separate DNS resolver
like DNSproxy or DNScrypt-proxy, like stated before. It would be nice to have just one resolver that can handle all of it though.
I've got DoH working but not in unbound. The fix for now is to use unbound as a caching only, and forward to a separate DNS resolver like DNSproxy or DNScrypt-proxy, like stated before. It would be nice to have just one resolver that can handle all of it though.
Agreed, I have the same setup and would prefer all unbound.
Activity
dtouzeau commentedon Sep 15, 2020
In progress #255
wcawijngaards commentedon Sep 16, 2020
Yes, if you seek those features then it can solve your request. The code there is usable right now if you want it in beta.
If you wanted DOH towards upstream servers, then this is a new feature. And it should wait for the already referenced DoH implementation, and also for socket reuse changes that are upcoming. It would be prudent to then first resolve bugs in that code. And then start thinking about this feature.
ebanDev commentedon Sep 20, 2020
Okay ! Thanks for your answers
dtouzeau commentedon Jan 24, 2021
Any news about this major feature ?
yan12125 commentedon Aug 18, 2021
@wcawijngaards Looks like the the socket reuse feature is ready in version 1.13.2? (with fixes #513 included). The only remaining issue might be that streams may not be reused on Windows (#516).
p1r473 commentedon Jun 22, 2022
I have it successfully using DOT (DNS over TLS) which is great
endreszabo commentedon Aug 3, 2022
Great, but we need DOH here. Why? The restaurant across the street MITMs (and strips DNSSEC) raw DNS traffic and does not let TCP/853 (=DOT) through. However, access to TCP/443 (=DOH) works fine.
mister2d commentedon Aug 4, 2022
I agree. My current workaround is using Unbound to pass DNS queries to a local
cloudflaredDOH proxy. Has been working great.p1r473 commentedon Aug 4, 2022
Can you post your config please?
mister2d commentedon Aug 4, 2022
It's terribly simple. I have a separate
cloudflaredDoH proxy listening on127.0.0.1:5053with an unboundforward-zoneconfigured to127.0.0.1@5053.unbound.confYou could test/replicate a cloudflared proxy setup with docker-compose.
stm32repo commentedon Jun 15, 2023
Strange as it may seem, but the speed of DoH is much higher than DoT
kkkgo commentedon Apr 23, 2024
Any progress?doh maybe useful in some network cases.
salamdamai commentedon May 5, 2024
What does your configuration file for cloudflared.service?
zcchm commentedon Jul 26, 2024
Any progress? Forward to DoH is useful in some scenarios.
ninetailedtori commentedon Feb 10, 2025
I've got DoH working but not in unbound. The fix for now is to use unbound as a caching only, and forward to a separate DNS resolver
like DNSproxy or DNScrypt-proxy, like stated before. It would be nice to have just one resolver that can handle all of it though.
baudneo commentedon Apr 6, 2025
Agreed, I have the same setup and would prefer all unbound.
gitbaby-afk commentedon Aug 22, 2025
+1
ddidderr commentedon Feb 7, 2026
Just a quick update for anyone who used
cloudflaredas a workaround for the missing DoH upstream feature:They removed the DNS Proxy feature as of version
2026.2.0.baudneo commentedon Feb 7, 2026
For more info: https://developers.cloudflare.com/changelog/2025-11-11-cloudflared-proxy-dns/