zfl9 / chinadns-ng

chinadns 重构增强版,支持域名分流、ipset/nftset、UDP/TCP/DoT
GNU Affero General Public License v3.0
1.14k stars 188 forks source link

是否个例:域名层级问题 #164

Closed Smallthing closed 7 months ago

Smallthing commented 7 months ago

hysteria.network加入gfwlist 按理说 https://v2.hysteria.network/ 应该被代理 ,但是没有, 而 v2.hysteria.network加入gfwlist 就可以了

zfl9 commented 7 months ago

不应该吧,结合verbose日志看看,日志里面显示的是tag是什么

zfl9 commented 7 months ago

无法复现你说的问题。

测试过程如下,默认 gfwlist.txt/chnlist.txt 没有 hysteria.network,所以我在 domain.txt 加了它。

$ zig build run -- -v -l55 -m res/chnlist.txt -g res/gfwlist.txt -g domain.txt
2024-04-23 11:07:04 I [main.zig:116 main] local listen addr: 127.0.0.1#55@tcp+udp
2024-04-23 11:07:04 I [groups.zig:119 on_start] tag:chn upstream: tcpi://114.114.114.114
2024-04-23 11:07:04 I [groups.zig:119 on_start] tag:chn upstream: udpi://114.114.114.114
2024-04-23 11:07:04 I [groups.zig:119 on_start] tag:gfw upstream: tcpi://8.8.8.8
2024-04-23 11:07:04 I [groups.zig:119 on_start] tag:gfw upstream: udpi://8.8.8.8
2024-04-23 11:07:04 I [dnl.c:509 dnl_init] gfwlist loaded:6170 added:6169 cost:130.721k
2024-04-23 11:07:04 I [dnl.c:509 dnl_init] chnlist loaded:72066 added:72014 cost:1428.871k
2024-04-23 11:07:04 I [dnl.c:516 dnl_init] L1 items:77956 lists:58891 buckets:131072 cost:512.000k
2024-04-23 11:07:04 I [dnl.c:520 dnl_init] L2 items:227 lists:187 buckets:512 cost:2.000k
2024-04-23 11:07:04 I [dnl.c:522 dnl_init] total memory cost (page-aligned): 2076.000k
2024-04-23 11:07:04 I [main.zig:116 main] ip test db: chnroute,chnroute6
2024-04-23 11:07:04 I [main.zig:116 main] default domain name tag: none
2024-04-23 11:07:04 I [main.zig:116 main] response timeout of upstream: 5
2024-04-23 11:07:04 I [main.zig:116 main] filter no-ip reply from chinadns
2024-04-23 11:07:04 I [main.zig:116 main] printing the verbose runtime log

2024-04-23 11:07:06 I [server.zig:305 QueryLog.query] query(id:10739, tag:gfw, qtype:1, 'hysteria.network') from 127.0.0.1#42045
2024-04-23 11:07:06 I [server.zig:366 QueryLog.forward] forward query(qid:1, from:udp, 'hysteria.network') to trust group
2024-04-23 11:07:06 I [Upstream.zig:512 Group.send] forward query(qid:1, from:udp) to upstream udpi://8.8.8.8
2024-04-23 11:07:06 I [server.zig:561 ReplyLog.reply] reply(qid:1, tag:gfw, qtype:1, 'hysteria.network') from udpi://8.8.8.8 [accept]

2024-04-23 11:07:29 I [server.zig:305 QueryLog.query] query(id:13145, tag:gfw, qtype:1, 'hysteria.network') from 127.0.0.1#57827
2024-04-23 11:07:29 I [server.zig:366 QueryLog.forward] forward query(qid:2, from:udp, 'hysteria.network') to trust group
2024-04-23 11:07:29 I [Upstream.zig:512 Group.send] forward query(qid:2, from:udp) to upstream udpi://8.8.8.8
2024-04-23 11:07:29 I [server.zig:561 ReplyLog.reply] reply(qid:2, tag:gfw, qtype:1, 'hysteria.network') from udpi://8.8.8.8 [accept]

2024-04-23 11:07:39 I [server.zig:305 QueryLog.query] query(id:49277, tag:gfw, qtype:1, 'v2.hysteria.network') from 127.0.0.1#57154
2024-04-23 11:07:39 I [server.zig:366 QueryLog.forward] forward query(qid:3, from:udp, 'v2.hysteria.network') to trust group
2024-04-23 11:07:39 I [Upstream.zig:512 Group.send] forward query(qid:3, from:udp) to upstream udpi://8.8.8.8
2024-04-23 11:07:40 I [server.zig:561 ReplyLog.reply] reply(qid:3, tag:gfw, qtype:1, 'v2.hysteria.network') from udpi://8.8.8.8 [accept]

2024-04-23 11:07:42 I [server.zig:305 QueryLog.query] query(id:36140, tag:gfw, qtype:1, 'v2.hysteria.network') from 127.0.0.1#37772
2024-04-23 11:07:42 I [server.zig:366 QueryLog.forward] forward query(qid:4, from:udp, 'v2.hysteria.network') to trust group
2024-04-23 11:07:42 I [Upstream.zig:512 Group.send] forward query(qid:4, from:udp) to upstream udpi://8.8.8.8
2024-04-23 11:07:42 I [server.zig:561 ReplyLog.reply] reply(qid:4, tag:gfw, qtype:1, 'v2.hysteria.network') from udpi://8.8.8.8 [accept]
zfl9 commented 7 months ago

如果你这边还是有问题,建议把测试log贴一下,类似我发的这样,不然没法分析问题哈。

先关了。。