kkkgo / PaoPaoDNS

泡泡DNS是一个能一键部署递归DNS的docker镜像
https://blog.03k.org/post/paopaodns.html
GNU General Public License v3.0
849 stars 67 forks source link

[Help] #201

Closed qiaoyun680 closed 2 months ago

qiaoyun680 commented 2 months ago

在提交之前,请确认

test.sh脚本自检日志

*********************************************************************************

images build time : 2024-08-28 16:12:23 UTC
check for the latest version ,
go to https://github.com/kkkgo/PaoPaoDNS/discussions 
-> test start `1725893984`

[INFO] ALL TEST PASS.✅

-> test end `1725893986`

*********************************************************************************

debug.sh脚本自检日志

### == debug.sh : docker exec -it paopaodns sh ==
-> debug start `1725894388`

[INFO] images build time : 2024-08-28 16:12:23 UTC
[OK]DATA_writeable
[OK]DATA_readable
[INFO] NETWORK
*********************************************************************************

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    inet 127.0.0.1/8 scope host lo
8: eth0@if9: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP 
    inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
default via 172.17.0.1 dev eth0 
172.17.0.0/16 dev eth0 scope link  src 172.17.0.2 
traceroute to 120.53.53.53 (120.53.53.53), 4 hops max, 46 byte packets
 1  172.17.0.1 (172.17.0.1)  0.003 ms  0.003 ms  0.002 ms
 2  192.168.5.1 (192.168.5.1)  0.053 ms  0.052 ms  0.037 ms
 3  123.118.0.1 (123.118.0.1)  3.121 ms  3.271 ms  2.694 ms
 4  221.222.95.185 (221.222.95.185)  3.617 ms  125.34.173.61 (125.34.173.61)  18.406 ms  125.34.172.61 (125.34.172.61)  2.857 ms
PING 223.5.5.5 (223.5.5.5): 56 data bytes
64 bytes from 223.5.5.5: seq=0 ttl=118 time=4.509 ms

--- 223.5.5.5 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 4.509/4.509/4.509 ms
PING 119.29.29.29 (119.29.29.29): 56 data bytes
64 bytes from 119.29.29.29: seq=0 ttl=55 time=7.467 ms

--- 119.29.29.29 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 7.467/7.467/7.467 ms
Server:     223.5.5.5
Address:    223.5.5.5#53

Non-authoritative answer:
www.taobao.com  canonical name = www.taobao.com.danuoyi.tbcache.com.
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 125.39.135.147
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 125.39.135.146
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2408:871a:6010:13:3::7e6
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2408:871a:6010:13:3::7e5

Server:     119.29.29.29
Address:    119.29.29.29#53

Non-authoritative answer:
www.qq.com  canonical name = ins-r23tsuuf.ias.tencent-cloud.net.
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 221.198.70.47
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2408:8711:10:1002::19
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2408:8711:10:1003::30

*********************************************************************************

[INFO] ENV
*********************************************************************************

====ENV TEST====
[OK]DATA_writeable-
[OK]DATA_readable-
MEM:1500m 3000m 10000000 4500mb
prefPC:100
CORES:-12-
POWCORES:-8-
ulimit :-1024-
FDLIM :-6-
TZ:-Asia/Shanghai-
UPDATE:-weekly-
DNS_SERVERNAME:-PaoPaoDNS,blog.03k.org-
SERVER_IP:-192.168.5.4-
ETHIP:-172.17.0.2-
DNSPORT:-53-
SOCKS5:-IP:PORT-
CNAUTO:-yes-
IPV6:-yes-
CNFALL:-yes-
CUSTOM_FORWARD:-192.168.5.7:53-
AUTO_FORWARD:-yes-
AUTO_FORWARD_CHECK:-yes-
USE_MARK_DATA:-yes-
RULES_TTL:-0-
CUSTOM_FORWARD_TTL:-0-
SHUFFLE:-no-
EXPIRED_FLUSH:-yes-
CN_TRACKER:-yes-
USE_HOSTS:-no-
HTTP_FILE:-no-
SAFEMODE:--
QUERY_TIME:-2000ms-
ADDINFO:-no-
PLATFORM:-Linux 47995777b390 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64 Linux-
====ENV TEST====
mosdns kkkgo/mosdns:240822.1
total 8M     
   4.0K drwxrwxrwx    3 0        0           4.0K Sep  9 22:46 .
   4.0K drwxr-xr-x    1 0        0           4.0K Sep  9 22:26 ..
 248.0K -rw-r--r--    1 0        0         247.7K Sep  9 22:28 Country-only-cn-private.mmdb
   4.0K -rw-r--r--    1 0        0            220 Sep  9 22:48 custom_cn_mark.txt
   4.0K -rwxrwxrwx    1 0        0            233 Sep  9 22:48 custom_env.ini
   4.0K -rwxrwxrwx    1 0        0            416 Sep  9 22:26 custom_mod.yaml
   4.0K drwxr-xr-x    2 0        0           4.0K Sep  9 22:26 dnscrypt-resolvers
   4.0K -rw-r--r--    1 0        0           3.0K Sep  9 22:26 dnscrypt.toml
   4.0K -rw-r--r--    1 0        0            670 Sep  9 22:46 force_dnscrypt_list.txt
   4.0K -rw-r--r--    1 0        0            325 Sep  9 22:46 force_forward_list.txt
   4.0K -rw-r--r--    1 0        0            387 Sep  9 22:46 force_recurse_list.txt
   1.2M -rw-r--r--    1 0        0           1.2M Sep  9 22:28 global_mark.dat
  12.0K -rw-r--r--    1 0        0          10.0K Sep  9 22:26 mosdns.yaml
   8.0K -rw-r--r--    1 0        0           5.7K Sep  9 22:26 redis.conf
   6.0M -rwxrwxrwx    1 0        0           6.0M Sep  9 21:41 redis_dns_v2.rdb
  16.0K -rw-r--r--    1 0        0          13.8K Sep  9 22:46 trackerslist.txt
  52.0K -rw-r--r--    1 0        0          50.9K Sep  9 22:26 unbound.conf
   4.0K -rwxrwxrwx    1 0        0            289 Nov  6  2023 unbound_custom.conf
*********************************************************************************

[INFO] PS
*********************************************************************************

PID   USER     TIME  COMMAND
    1 root      0:00 {init.sh} /bin/sh /usr/sbin/init.sh
   23 root      0:00 crond
   55 root      0:01 redis-server unixsocket:/tmp/redis.sock
  215 root      0:00 dnscrypt-proxy -config /data/dnscrypt-resolvers/dnscrypt.toml
  227 root      0:00 unbound -c /tmp/unbound_forward.conf -p
  246 root      0:00 {watch_list.sh} /bin/sh /usr/sbin/watch_list.sh
  249 root      0:01 unbound -c /tmp/unbound_raw.conf -p
  253 root      0:00 tail -f /dev/null
 1108 root      0:00 /usr/sbin/mosdns start -d /data -c /tmp/mosdns.yaml
 1153 root      0:00 inotifywait -e modify,delete /etc/unbound/named.cache /data/Country-only-cn-private.mmdb /data/force_recurse_list.txt /data/force_dnscrypt_list.txt /data/custom_env.ini /data/global_mark.dat /data/custom_cn_mark.txt /data/trackerslist.txt /data/force_forward_list.txt
 1756 root      0:00 {debug.sh} /bin/sh /usr/sbin/debug.sh
 1782 root      0:00 ps -ef
  249 root      0:01 unbound -c /tmp/unbound_raw.conf -p
unbound OK.
  227 root      0:00 unbound -c /tmp/unbound_forward.conf -p
unbound_forward OK.
*********************************************************************************

[INFO] TOP
*********************************************************************************

CPU:   0% usr   0% sys   0% nic 100% idle   0% io   0% irq   0% sirq
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 1108   246 root     S    1211m   5%  14   0% /usr/sbin/mosdns start -d /data -c
  215     1 root     S    1210m   5%  14   0% dnscrypt-proxy -config /data/dnscr
  249     1 root     S     240m   1%  14   0% unbound -c /tmp/unbound_raw.conf -
   55     1 root     S    32580   0%  14   0% redis-server unixsocket:/tmp/redis
  227     1 root     S    27072   0%  14   0% unbound -c /tmp/unbound_forward.co
  246     1 root     S     1704   0%  14   0% {watch_list.sh} /bin/sh /usr/sbin/
    1     0 root     S     1644   0%  14   0% {init.sh} /bin/sh /usr/sbin/init.s
 1756     0 root     S     1640   0%  14   0% {debug.sh} /bin/sh /usr/sbin/debug
 1789  1756 root     R     1636   0%  14   0% top -n1
  253     1 root     S     1628   0%  14   0% tail -f /dev/null
 1790  1756 root     S     1624   0%  14   0% grep %
 1153   246 root     S     1084   0%  14   0% inotifywait -e modify,delete /etc/
   23     1 root     S      872   0%  14   0% crond
*********************************************************************************

[INFO] REDIS
*********************************************************************************

used_memory_human:8.59M
used_memory_rss_human:13.61M
used_memory_peak_human:8.65M
total_system_memory_human:23.31G
used_memory_lua_human:31.00K
used_memory_vm_total_human:63.00K
used_memory_scripts_human:181B
maxmemory_human:4.39G
29579
*********************************************************************************

[TEST] IP ROUTE
*********************************************************************************

CN IP URL:
123.118.5.xx
-
123.118.5.xx
--
123.118.5.xx
CN RAW-IP URL:
123.118.5.xx
------------------
Non-CN IP URL:
45.15.9.122
-
--
45.15.9.122
Non-CN RAW-IP URL:
123.118.5.xx
-
--
123.118.5.xx
---
123.118.5.xx
------------------
IP INFO:
123.118.5.xx
CN,Beijing,Beijing
ASN4808/China Unicom
HTTP/1.1 
Mozilla/5.0 Gecko/20100101 Firefox/120.0 https://github.com/kkkgo/PaoPaoDNS
Asia/Shanghai Time: 9/9/2024, 11:07:01 PM
[INFO] force_recurse_list
domain:whoami.ds.akahelp.net
domain:whoami.03k.org
MOSDNS WHOAMI :
MOSDNS akahelp: "ns" "123.118.5.xx"
MOSDNS 03k: 123.118.5.xx
UNBOUND WHOAMI:
UNBOUND akahelp: "ns" "123.118.5.xx"
UNBOUND 03k: 123.118.5.xx
*********************************************************************************

[TEST] HIJACK
*********************************************************************************

;; communications error to 9.8.7.5#53: timed out
;; no servers could be reached

;; communications error to 9.8.7.6#53: timed out
;; no servers could be reached

HIJACK 127.0.0.1 = 58.217.249.139
*********************************************************************************

[TEST] DIG-CN [taobao]
*********************************************************************************

MOSDNS CN:
www.taobao.com.danuoyi.tbcache.com.
125.39.135.147
125.39.135.146
UNBOUND CN:
www.taobao.com.danuoyi.tbcache.com.
125.39.135.147
125.39.135.146
[TEST] DIG-NOCN [youtube]
MOSDNS NOCN:
198.18.0.17
DNSCRYPT-UNBOUND NOCN:
youtube-ui.l.google.com.
172.217.168.78
142.250.203.110
DNSCRYPT NOCN:
youtube-ui.l.google.com.
216.58.215.238
172.217.168.46
DNSCRYPT-SOCKS5 NOCN:
;; communications error to 127.0.0.1#5303: connection refused
;; no servers could be reached

*********************************************************************************

CUSTOM_FORWARD TEST [youtube]:
198.18.0.17
CUSTOM_FORWARD TEST [taobao]:
198.18.1.21
*********************************************************************************

[TEST] DUAL CN [IPv6=YES will have aaaa,taobao]
*********************************************************************************

www.taobao.com.danuoyi.tbcache.com.
2408:871a:6010:13:3::7e6
2408:871a:6010:13:3::7e5
[TEST] DUAL NOCN [IPv6=YES will block aaaa,youtube]
[TEST] ONLY6 [IPv6=only6 will block aaaa if a ok]
checkipv6.synology.com : ip6.03k.org : 2606:4700:3034::6815:15ef
2606:4700:3037::ac43:c96c
6.ipw.cn : 2400:8905::f03c:94ff:fe1c:a95e

*********************************************************************************

[info] ALL TEST FINISH.

-> debug end `1725894423`

问题描述和复现步骤

我在启用了USE_MARK_DATA CUSTOM_FORWARD AUTO_FORWARD的情况下 在custom_cn_mark.txt中增加了domain:xn--ngstr-lra8j.coma 期望中不应该被转发而是自己解析 但是实际却被转发给了CUSTOM_FORWARD设置的dns 请问是我配置错了吗

kkkgo commented 2 months ago

检查下force_forward_list.txt

qiaoyun680 commented 2 months ago

感谢大佬 果然是因为有默认规则