julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android
https://jak-linux.org/projects/dns66/
GNU General Public License v3.0
2.14k stars 200 forks source link

Allow DNS servers on non-standard ports #22

Open julian-klode opened 8 years ago

julian-klode commented 8 years ago

DNS66 should allow specifying DNS servers with non-standard ports. This would allow it to interact with a DNSCrypt proxy running on the device (which helps #11) without root being required to run the proxy.

cubakcabak commented 7 years ago

please make this available, custom dns port on dns server lists.

the reason is that my isp transparently intercept and redirect default dns port 53 to their own dns server, for their local advertising and blocking website they "deemed necessary".

i've tried to input the ip in format 208.67.222.222:5353 but dns66 crashing.

michyprima commented 6 years ago

any news on this?

julian-klode commented 6 years ago

not yet

michyprima commented 6 years ago

I saw that overriding the port in DnsPacketProxy is enough to get it working (line 189) so we just need an UI implementation. I could do it and make a PR. Any guideline I should follow?

julian-klode commented 6 years ago

It's a bit difficult. We could hack that in somehow by parsing ports in the address fields, but I'm not sure that's correct. and adding a separate port field is a lot more complicated, I'm afraid.

julian-klode commented 6 years ago

As we want a port field for dns servers, but not for host files. Hence we have to split Configuration.Item into subclasses I think.

julian-klode commented 6 years ago

Actually; this gets kind of weirder with the tls stuff in #11 - a DNS server could be

an each could have a port or not.