aarond10 / https_dns_proxy

A lightweight DNS-over-HTTPS proxy.
MIT License
779 stars 114 forks source link

Can you make an option for the user to decide whether to get the A result or the AAAA result or the result of ANY? #49

Closed PussAzuki closed 5 years ago

PussAzuki commented 5 years ago

Could you make an option for the user to decide whether to get the A result or the AAAA result or the result of ANY? Not everyone has an ipv6 address. Those who don't have a native ipv6 address have to use a tunnel. And your software is very good.However, your software has only a backup mechanism and no complementary mechanism.which makes the software somewhat inadequate. If you can do it ,I would be appreciate

Translated by Google Translate

aarond10 commented 5 years ago

That would be breaking standards IIUC. It sounds like you are using some non-standard environment. If you only have IPv4, your host shouldn't be trying to use AAAA records. ANY queries return both A (type 1) and AAAA (type 28) records. Your host should choose the most appropriate.

PussAzuki commented 5 years ago

Yes, I am using a 6in4 tunnel, which is why I need to use a DoH service with different EDNS client subnets such as first ECS A is where my ipv4 address,and last ECS B is ipv6's . I thought I could force it to accept only one of the results returned by ipv4/6 by adding type=1 or type=28 before parsing the URL, but I failed. It seems that their order determines ipv4 and ipv6 results by the first ECS A ,I sincerely hope that users can choose different ECS that ipv4/6 should use.