-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing DNS over HTTPS to TLS/Warp #88
Comments
Wireguard does not support DoH natively like the 1.1.1.1 client, you have to run a DoH/DoT server and redirect DNS requests to it for this functionality. There are exceptions like on Android that supports DoT natively through Private DNS and Firefox that supports DoH. Either way, all traffic(including DNS) will go over VPN, so it shouldn't have an effect on blocked sites. |
I see. Well apparently it is having an effect and I am not so sure why either. I see, so there's no easy way to do that? I guess I'll have to look into it more. Thanks |
When using WARP and Cloudflare's own DNS servers, queries are routed via the VPN and never leave the Cloudflare network:
So it doesn't really matter how queries are done (DoT, DoH, regular queries), they're still encrypted and going directly to Cloudflare. If someone is blocking queries, then you probably have a DNS leak somewhere (use https://dnsleaktest.com/ to test). One of the reasons why sometimes their help site reports DNS-over-HTTPS is because our browser itself is using DoH. Browsers like Firefox or Chrome (and browsers based on these two) do this, but only sometimes (unless you force DoH). Keep in mind that browser DoH only works for the browser itself, it's not system wide. Something I noticed is that sometimes (very rare) I'll connect to WARP using the config generated with WGCF, but it's like it's not working. A reboot always fixes it, so I assume it's something on the OS/Wireguard client. |
I noticed that the newly released warp linux client supports doh mode switching! https://developers.cloudflare.com/warp-client/setting-up/linux |
The DNS is completely managed by WireGuard, we only set the IP address. I don't know what method WireGuard uses, but I don't think it can be changed. It's supposed to be a maximally simple setting that runs on all platforms. Cloudflare's client can do much more because they have custom code running along the VPN, they don't rely on the official WireGuard program. Happy to be proven wrong, though. |
i think... you could use a service such as duckdns that will point a DNS (sub domains of duckdns.org) to an IP of your choice in the conf file:
|
Closing since the question was answered. |
@ViRb3 According to #57
This configuration file used with wireguard works over the HTTPS protocol. Which can be checked over https://cloudflare-dns.com/help
Is there a way to change DoH to DoT or Warp? Also, what's the gateway=off signify under warp status when wgcf trace is run?
EDIT: Just when I made this post, I checked again and miraculously it showed me DNS over Warp. (I did not disconnect, merely checked another website which was blocked in my country, which only worked under the DoH and it didn't, so I checked back again on that site)
I hope this is not unstable and doesn't keep switching. Although, when I used the official app that kept switching over and over again on the site, but my blocked site worked fine over it as long as the connection protocol in app was set at DoH and not Warp. nvm, seems like the site is not so stable or sure-fire way to check, checked again and it's back to DoH but my blocked site doesn't work anymore, miraculously it had worked once earlier. Either way, I guess there needs to be a way to switch over DNS over settings manually.
The text was updated successfully, but these errors were encountered: