Results 171 comments of zfl9

你这里chinadns-ng监听的端口是7913,但是你dig访问的是53,我觉得问题可能不在chinadns-ng,请检查dns解析链路。 另外我仔细看了代码,也验证过不存在你说的“处理遗漏问题”

gfwlist.txt并未包括bing.com,只有global.bing.com,所以bing.com显然被判定为chn域名。

如果需要将bing.com(含所有子域)判定为gfw域名,请加入gfwlist.txt,重启chinadns-ng再试。

麻烦整理一下issue信息哈: - 有问题的域名是哪个? - chinadns-ng参数,以及log - dnsmasq的log - dig测试输出 请带上chinadns-ng的详细日志(-v参数) 如果涉及gfwlist/chnlist.txt,请说明相关域名属于哪个列表 > 是`bing.com`、还是`www.halowaypoint.com`?还是二者?

我这边无法重现你说的问题(我手动将`bing.com`和`www.halowaypoint.com`)加入了`gfwlist.txt`,并且`chinadns-ng`参数与你说的相同;dig via dnsmasq、dig via chinadns-ng 都正常。 --- ## dnsmasq 日志 ```console $ dnsmasq --no-daemon --server='127.0.0.1#65353' --port 53 --log-debug --no-resolv --log-queries dnsmasq: started, version 2.89 cachesize 150 dnsmasq: compile time options:...

这是去掉 `-N=gt` 参数后的 dig 测试结果(其他参数未变) ## chinadns-ng ```console $ ./chinadns-ng -v -c 192.168.2.84 -t 192.168.2.89 -g gfwlist.txt -d chn 2023-03-31 14:42:59 I: [main] local listen addr: 127.0.0.1#65353 2023-03-31 14:42:59 I:...

我希望你这边能够按照上述流程(测试样板),复现一下。请务必带上chinadns-ng的日志,dnsmasq日志如果可以也请带上。

> 是否是在缓存里没有的时候dnsmasq先收到了优先的aaaa查询? A和AAAA查询是两个独立的dns query请求,我不认为存在所谓优先级。