shawn1m / overture

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

ip没有匹配到IPNetworkFile的问题? #129

Closed bborn2 closed 5 years ago

bborn2 commented 5 years ago

我的配置文件如下: { "BindAddress": ":53", "PrimaryDNS": [ { "Name": "114", "Address": "114.114.114.114:53", "Protocol": "udp", "SOCKS5Address": "", "Timeout": 6, "EDNSClientSubnet": { "Policy": "disable", "ExternalIP": "" } } ], "AlternativeDNS": [{ "Name": "google", "Address": "8.8.4.4:53", "Protocol": "tcp", "SOCKS5Address": "xxx", "Timeout": 6, "EDNSClientSubnet": { "Policy": "disable", "ExternalIP": "" } }],

"OnlyPrimaryDNS": false, "IPv6UseAlternativeDNS": false, "IPNetworkFile": { "Primary": "./china_ip_list.txt", "Alternative": "./ip_network_alternative_sample" }, "DomainFile": { "Primary": "./domain_primary_sample", "Alternative": "./gfw_all_domain.txt" }, "HostsFile": "/etc/hosts", "MinimumTTL": 3600, "CacheSize" : 10000, "RejectQtype": [255] } 期望是,需要翻墙的走google dns解析,国内的走114.

问题是,打开iqiyi,提示不能在该地区使用。查询overture的log如下: DEBU[0027] Question from 192.168.1.82: ;msg.qy.net. IN A DEBU[0027] Domain primary match fail
DEBU[0027] Domain alternative match fail
DEBU[0027] Question from 192.168.1.82: ;ifacelog.iqiyi.com. IN A DEBU[0027] Domain primary match fail
DEBU[0027] Domain alternative match fail
DEBU[0027] Answer from 114: msg.qy.net. 87 IN CNAME msg.video.dns.iqiyi.com. DEBU[0027] Answer from 114: msg.video.dns.iqiyi.com. 280 IN A 111.206.23.96 DEBU[0027] Answer from 114: msg.video.dns.iqiyi.com. 280 IN A 111.206.23.97 DEBU[0028] Answer from 114: msg.video.dns.iqiyi.com. 280 IN A 111.206.70.132 DEBU[0028] Answer from 114: msg.video.dns.iqiyi.com. 280 IN A 123.129.210.135 DEBU[0028] Answer from 114: msg.video.dns.iqiyi.com. 280 IN A 111.206.70.133 DEBU[0028] Try to match response ip address with IP network DEBU[0028] Answer from 114: ifacelog.iqiyi.com. 347 IN CNAME ifacelog.dns.iqiyi.com. DEBU[0028] Answer from 114: ifacelog.dns.iqiyi.com. 279 IN A 123.125.111.66 DEBU[0028] IP network match failed, fcainally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Question from 192.168.1.82: ;iface2.iqiyi.com. IN A DEBU[0028] Domain primary match fail
DEBU[0028] Domain alternative match fail
DEBU[0028] Answer from 114: iface2.iqiyi.com. 261 IN CNAME iface2.dns.iqiyi.com. DEBU[0028] Answer from 114: iface2.dns.iqiyi.com. 261 IN A 111.206.70.138 DEBU[0028] Answer from 114: iface2.dns.iqiyi.com. 261 IN A 123.125.84.233 DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Try to match response ip address with IP network DEBU[0028] IP network match failed, finally use alternative DNS DEBU[0028] Answer from google: iface2.iqiyi.com. 599 IN CNAME iface2.dns.iqiyi.com. DEBU[0028] Answer from google: iface2.dns.iqiyi.com. 599 IN A 101.227.32.6 DEBU[0028] Answer from google: iface2.dns.iqiyi.com. 599 IN A 101.227.32.13 DEBU[0028] Cached: iface2.iqiyi.com. 1

就看了这个ip 123.125.111.66 ,在china_ip_list.txt 中有这一条记录 123.112.0.0/12 不应该出现 IP network match failed

能否帮忙看看这是什么问题?

bborn2 commented 5 years ago

猜测是因为IPNetworkFile配置文件没有加载成功导致