shawn1m / overture

A customized DNS relay server
MIT License
1.79k stars 284 forks source link

对PrimaryDNS和AlternativeDNS结果取舍的建议 #213

Closed mewsf closed 4 years ago

mewsf commented 4 years ago

有些CDN同时部署了国内和国外节点, 而国内节点仅有IPv4, 国外节点是IPv4+IPv6双栈. 这样有的域名通过overture查询结果就是A记录为国内 AAAA记录为国外, 但是系统一般优先走IPv6. 所以建议能支持 如果PrimaryDNS返回了符合IPNetworkFile的结果的话, 完全忽略AlternativeDNS的结果 这样的功能.

shawn1m commented 4 years ago

If there are both A and AAAA records received by the system, there must be two requests sent to overture and overture can do something about it only if these AAAA records are blocked entirely in some ways.

newcoderlife commented 4 years ago

这个问题有一个类似的例子:netflix。 它有A和AAAA两种解析,netflix会优先使用IPv6网络。在这种情况下无法通过透明代理来解锁netflix。(我尝试了IPv6的tproxy,它会暴露原始地址)。 我们是否可以设置某些域名只返回A记录?比如像这样。 谢谢!

shawn1m commented 4 years ago

这个问题有一个类似的例子:netflix。 它有A和AAAA两种解析,netflix会优先使用IPv6网络。在这种情况下无法通过透明代理来解锁netflix。(我尝试了IPv6的tproxy,它会暴露原始地址)。 我们是否可以设置某些域名只返回A记录?比如像这样。 谢谢!

The Hosts feature of overture could simply solve your problem.

newcoderlife commented 4 years ago

这个问题有一个类似的例子:netflix。 它有A和AAAA两种解析,netflix会优先使用IPv6网络。在这种情况下无法通过透明代理来解锁netflix。(我尝试了IPv6的tproxy,它会暴露原始地址)。 我们是否可以设置某些域名只返回A记录?比如像这样。 谢谢!

The Hosts feature of overture could simply solve your problem.

By reading the source code, overture matches the ipv4 and ipv6 addresses in the hosts file separately, which can only block AAAA records. Thanks for your reply!