IrineSistiana / mosdns-cn

A simple DNS forwarder that can make life easier. (Not maintained)
GNU General Public License v3.0
321 stars 46 forks source link

v1.1 remotedns不生效 #8

Closed ylx2016 closed 2 years ago

ylx2016 commented 2 years ago

同样的规则,1.0.1正常, 1.1 本应该走remote解析的走local解析 mosdns-cn-linux-amd64 用的参数 ./mosdns-cn -s :53 --hosts hosts.txt --local-domain local.txt --remote-domain remote.txt --blacklist-domain blocklist.txt --local-upstream https://223.5.5.5/dns-query?netaddr=223.5.5.5:443 --local-upstream https://doh.pub/dns-query?netaddr=162.14.21.56:443 --local-domain geosite.dat:cn --local-ip geoip.dat:cn --remote-upstream https://*****/*****?netaddr=**:**** --remote-domain geosite.dat:geolocation-!cn

IrineSistiana commented 2 years ago

举个例子?

ylx2016 commented 2 years ago

例子来了 参数 ./mosdns-cn -s :53 --local-upstream https://223.5.5.5/dns-query?netaddr=223.5.5.5:443 --local-upstream https://doh.pub/dns-query?netaddr=162.14.21.56:443 --local-domain geosite.dat:cn --local-ip geoip.dat:cn --remote-upstream https://*****/****?netaddr=***** --remote-domain geosite.dat:geolocation-!cn --debug debug 2021-10-19T19:42:42.730+0800 debug local_upstream utils/utils.go:295 response received {"query": "push.services.mozilla.com. IN A 6808 72", "from": "https://doh.pub/dns-query"} 2021-10-19T19:42:42.730+0800 debug dns_handler/server_handler.go:91 entry returned {"query": "push.services.mozilla.com. IN A 6808 72", "status": "dropped"} 2021-10-19T19:42:44.737+0800 debug local_upstream utils/utils.go:295 response received {"query": "push.services.mozilla.com. IN A 6808 73", "from": "https://doh.pub/dns-query"} 2021-10-19T19:42:44.737+0800 debug dns_handler/server_handler.go:91 entry returned {"query": "push.services.mozilla.com. IN A 6808 73", "status": "dropped"}

IrineSistiana commented 2 years ago

发现问题了。 --local-latency 的默认值没了。近期会修正。

目前手动加用 --local-latency 可以避免这个问题。

ylx2016 commented 2 years ago

--local-latency默认值是多少

IrineSistiana commented 2 years ago

50