Skip to content
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

[OFF-TOPIC] [Need Help] How to use it in router which only supports IPv4 DNS? #91

Open
webpixeldesign opened this issue Apr 9, 2024 · 2 comments

Comments

@webpixeldesign
Copy link

I am using Xiaomi Router 3c & Router 4c, both of which only support IPv4 DNS. Cause when I entered the IPv6 one, it gave an error saying the DNS needs to of a value 255.255.255.255 max. The script is working perfectly fine. This is first time I used node.js, npm, etc. but surprisingly managed to do it in one go. Tried the output in two of my android devices and chrome browser using the dns over tls / https DNS and all are working fine.

I just couldn't manage to make it work in my router and windows 10 PC.

My ISP is using PPPoE connection type, which assigns random IP address to my network.

If someone can guide me how can I use this DNS with my router I'll be very grateful 🙏

mi3-wireless-router-repeater-mmode

@webpixeldesign
Copy link
Author

Forgot to mention that, the DNS Cloudflare provided to be used in IPv4 devices, didn't work. I mean the internet was working fine, but nothing was getting filtered. I was getting ads in all my devices.

@mrrfv
Copy link
Owner

mrrfv commented Apr 10, 2024

It's better to manually configure all your devices to use the DNS settings to benefit from DoH/DoT.

The DNS settings provided by Cloudflare might not've worked if you didn't link your IP address to the DNS location. This is required because we don't have an infinite amount of IPv4 addresses, so Cloudflare can't give everyone their personal IP for DNS. You can do this by clicking on the DNS location and pressing "Configure", then "Add IP" in the "Source IPv4 address" section.
Keep in mind that this may eventually break if you have a dynamic IP.

As an ideal alternative that doesn't use moving parts, run a tiny DNS server at home that forwards queries over to your DoH URL such as cloudflared:

cloudflared proxy-dns --address 0.0.0.0 --upstream https://changeme.cloudflare-gateway.com/dns-query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants