My isp intercept dns on specific port

is there any way to access cloduflare dns without using port 53/5353/27015/54 ?
my isp intercept port 53/5353/27015/54 and their dns are very bad, it will take around 5-10s just to resolve domain

i’m trying to redirect all of traffic in my network to cloudflare using port 443 in my basic linux router, but it cant connect to cloudflare dns, right now i can only use quad 9 or opendns server using port 443, but their server are around 100ms to resolve, a bit slower than cloudflare that around 10-20ms, can anyone help ? thank you in advance

the config i use
iptables -t nat -I PREROUTING -i br0 -s 10.10.10.128/25 -p udp --dport 53 -j DNAT --to 1.1.1.1:443
iptables -t nat -I PREROUTING -i br0 -s 10.10.10.128/25 -p tcp --dport 53 -j DNAT --to 1.1.1.1:443
iptables -t nat -I PREROUTING -i br0 -s 10.10.10.128/25 -p udp --dport 53 -j DNAT --to 1.0.0.1:443
iptables -t nat -I PREROUTING -i br0 -s 10.10.10.128/25 -p tcp --dport 53 -j DNAT --to 1.0.0.1:443

You can use DoH or DoT instead. They are not classic DNS and require special setups (-> https://developers.cloudflare.com/1.1.1.1/) but they run over ports 443 and 853 respectively.

As mentioned, you’ll won’t be able to “just” forward ports but will need aforementioned setups, so Iptables won’t work here.

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