Skip to content

[Help] test.sh 结果提示 [DNS hijack]127.0.0.181yyyyyyyyyy #271

@daisuki4gh

Description

@daisuki4gh

在提交之前,请确认

  • 我已经尝试执行test.sh并搜索过Issue和discussions和文档,但没有找到相关问题。
  • 我正在使用最新的docker镜像版本(可以尝试docker pull sliamb/paopaodns:latest后重新创建容器)。

test.sh脚本自检日志

root@PaoPaoDNS:~# docker exec PaoPaoDNS 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 `1759318247`

yy[DNS hijack]127.0.0.181yyyyyyyyyy
[INFO] TEST FAIL.❌

-> test end `1759318248`

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

debug.sh脚本自检日志

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

[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
    inet6 ::1/128 scope host 
9: eth0@if10: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP 
    inet 172.18.0.2/16 brd 172.18.255.255 scope global eth0
default via 172.18.0.1 dev eth0 
172.18.0.0/16 dev eth0 scope link  src 172.18.0.2 
traceroute to 120.53.53.53 (120.53.53.53), 4 hops max, 46 byte packets
 1  172.18.0.1 (172.18.0.1)  0.010 ms  0.083 ms  0.009 ms
 2  192.168.5.1 (192.168.5.1)  1.007 ms  0.676 ms  0.871 ms
 3  172.96.0.1 (172.96.0.1)  2.448 ms  2.216 ms  2.282 ms
 4  183.233.126.89 (183.233.126.89)  7.983 ms  183.233.126.85 (183.233.126.85)  2.541 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=12.943 ms

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

--- 119.29.29.29 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 15.786/15.786/15.786 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: 120.232.247.176
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 120.232.247.175
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2409:8c54:1821:16:3::3e5
Name:   www.taobao.com.danuoyi.tbcache.com
Address: 2409:8c54:1821:16:3::3e6

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: 112.53.42.114
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 112.53.42.52
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2409:8c54:871:1::73
Name:   ins-r23tsuuf.ias.tencent-cloud.net
Address: 2409:8c54:871:2::34

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

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

====ENV TEST====
[OK]DATA_writeable-
[OK]DATA_readable-
MEM:400m 800m 500000 900mb
prefPC:82
CORES:-2-
POWCORES:-2-
ulimit :-524288-
FDLIM :-4096-
TZ:-Asia/Shanghai-
UPDATE:-weekly-
DNS_SERVERNAME:-PaoPaoDNS,blog.03k.org-
SERVER_IP:-192.168.5.23-
ETHIP:-172.18.0.2-
DNSPORT:-53-
SOCKS5:-192.168.5.23:1080-
CNAUTO:-yes-
IPV6:-no-
CNFALL:-yes-
CUSTOM_FORWARD:-192.168.5.100: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:-yes-
SAFEMODE:--
QUERY_TIME:-2000ms-
ADDINFO:-no-
PLATFORM:-Linux 9d55a898e609 6.2.16-3-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) x86_64 Linux-
====ENV TEST====
mosdns kkkgo/mosdns:240822.1
total 12M    
   4.0K drwxrwxrwx    3 0        0           4.0K Oct  1 19:26 .
   4.0K drwxr-xr-x    1 0        0           4.0K Oct  1 19:26 ..
 256.0K -rw-r--r--    1 0        0         252.3K Oct  1 19:29 Country-only-cn-private.mmdb
  20.0K -rwxrwxrwx    1 0        0          16.8K Oct  5  2024 custom-1005.yaml
  20.0K -rwxrwxrwx    1 0        0          16.4K Oct  7  2024 custom-1215.yaml
      0 -rwxrwxrwx    1 0        0              0 Oct  4  2024 custom_cn_mark.txt
   4.0K -rwxrwxrwx    1 0        0            233 Oct  1 19:29 custom_env.ini
   4.0K -rwxrwxrwx    1 0        0            416 Oct  1 19:26 custom_mod.yaml
   4.0K drwxr-xr-x    2 0        0           4.0K Oct  1 19:26 dnscrypt-resolvers
   4.0K -rw-r--r--    1 0        0           3.0K Oct  1 19:26 dnscrypt.toml
   4.0K -rwxrwxrwx    1 0        0            670 Oct  4  2024 force_dnscrypt_list.txt
   4.0K -rwxrwxrwx    1 0        0            325 Oct  4  2024 force_forward_list.txt
   4.0K -rwxrwxrwx    1 0        0            387 Oct  4  2024 force_recurse_list.txt
   1.4M -rw-r--r--    1 0        0           1.4M Oct  1 19:29 global_mark.dat
  12.0K -rw-r--r--    1 0        0          10.0K Oct  1 19:26 mosdns.yaml
   4.0K -rwxrwxrwx    1 0        0            721 Apr 12 14:17 ppgw.ini
   4.0K -rwxrwxrwx    1 0        0            684 Oct  5  2024 ppgw.ini.bak
   8.0K -rw-r--r--    1 0        0           5.7K Oct  1 19:26 redis.conf
  10.2M -rwxrwxrwx    1 0        0          10.2M Oct  1 17:45 redis_dns_v2.rdb
  28.0K -rwxrwxrwx    1 0        0          26.2K Oct  1 19:29 trackerslist.txt
  52.0K -rw-r--r--    1 0        0          50.9K Oct  1 19:26 unbound.conf
   4.0K -rwxrwxrwx    1 0        0            289 Oct  4  2024 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
   57 root      0:00 redis-server unixsocket:/tmp/redis.sock
  240 root      0:00 dnscrypt-proxy -config /data/dnscrypt-resolvers/dnscrypt.toml
  241 root      0:01 dnscrypt-proxy -config /data/dnscrypt-resolvers/dnscrypt_socks.toml
  258 root      0:00 unbound -c /tmp/unbound_forward.conf -p
  280 root      0:00 {watch_list.sh} /bin/sh /usr/sbin/watch_list.sh
  285 root      0:00 tail -f /dev/null
  824 root      0:00 /usr/sbin/unbound -c /tmp/unbound_raw.conf
 1319 root      0:00 /usr/sbin/mosdns start -d /data -c /tmp/mosdns.yaml
 1365 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
 1473 root      0:00 {debug.sh} /bin/sh /usr/sbin/debug.sh
 1496 root      0:00 ps -ef
  824 root      0:00 /usr/sbin/unbound -c /tmp/unbound_raw.conf
unbound OK.
  258 root      0:00 unbound -c /tmp/unbound_forward.conf -p
unbound_forward OK.
*********************************************************************************

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

CPU:   8% usr  17% sys   0% nic  73% idle   0% io   0% irq   0% sirq
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  824     1 root     S    1219m  15%   0   0% /usr/sbin/unbound -c /tmp/unbound_
 1319   280 root     S    1211m  15%   1   0% /usr/sbin/mosdns start -d /data -c
  240     1 root     S    1210m  15%   0   0% dnscrypt-proxy -config /data/dnscr
  241     1 root     S    1210m  15%   1   0% dnscrypt-proxy -config /data/dnscr
  258     1 root     S     613m   8%   0   0% unbound -c /tmp/unbound_forward.co
   57     1 root     S    39084   0%   0   0% redis-server unixsocket:/tmp/redis
  280     1 root     S     1700   0%   1   0% {watch_list.sh} /bin/sh /usr/sbin/
    1     0 root     S     1644   0%   1   0% {init.sh} /bin/sh /usr/sbin/init.s
 1473     0 root     S     1644   0%   1   0% {debug.sh} /bin/sh /usr/sbin/debug
 1503  1473 root     R     1640   0%   0   0% top -n1
  285     1 root     S     1628   0%   0   0% tail -f /dev/null
 1504  1473 root     S     1628   0%   1   0% grep %
 1365   280 root     S     1088   0%   0   0% inotifywait -e modify,delete /etc/
   23     1 root     S      872   0%   1   0% crond
*********************************************************************************

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

used_memory_human:13.79M
used_memory_rss_human:20.05M
used_memory_peak_human:13.79M
total_system_memory_human:7.66G
used_memory_lua_human:31.00K
used_memory_vm_total_human:63.00K
used_memory_scripts_human:181B
maxmemory_human:900.00M
42145
*********************************************************************************

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

CN IP URL:
120.229.91.83
-
120.229.91.83
--
CN RAW-IP URL:
------------------
Non-CN IP URL:
103.235.17.101
-
--
103.235.17.101
Non-CN RAW-IP URL:
-
120.229.91.83
--
---
120.229.91.83
------------------
IP INFO:
120.229.91.83
CN,Shanghai,Shanghai
ASN9808/China Mobile Communications Corporation
HTTP/1.1 
Mozilla/5.0 Gecko/20100101 Firefox/120.0 https://github.com/kkkgo/PaoPaoDNS
Asia/Shanghai Time: 10/1/2025, 7:32:15 PM
[INFO] force_recurse_list
domain:whoami.ds.akahelp.net
domain:whoami.03k.org
MOSDNS WHOAMI :
MOSDNS akahelp: "ns" "120.229.91.83"
MOSDNS 03k: 120.229.91.83
UNBOUND WHOAMI:
UNBOUND akahelp: "ns" "120.229.91.83"
UNBOUND 03k: 120.229.91.83
*********************************************************************************

[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 = 127.0.0.181
*********************************************************************************

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

MOSDNS CN:
www.taobao.com.danuoyi.tbcache.com.
120.232.247.175
120.232.247.176
UNBOUND CN:
www.taobao.com.danuoyi.tbcache.com.
120.232.247.176
120.232.247.175
[TEST] DIG-NOCN [youtube]
MOSDNS NOCN:
7.0.0.14
DNSCRYPT-UNBOUND NOCN:
youtube-ui.l.google.com.
172.217.194.190
172.217.194.136
DNSCRYPT NOCN:
youtube-ui.l.google.com.
142.250.191.78
142.251.46.174
DNSCRYPT-SOCKS5 NOCN:
;; communications error to 127.0.0.1#5303: timed out
;; no servers could be reached

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

CUSTOM_FORWARD TEST [youtube]:
7.0.0.14
CUSTOM_FORWARD TEST [taobao]:
7.0.0.98
*********************************************************************************

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

[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 : 6.ipw.cn : 
*********************************************************************************

[info] ALL TEST FINISH.

-> debug end `1759318343`

问题描述和复现步骤

感谢大佬的作品,从去年8月运行至今一直很丝滑,今早发现手机无法访问YouTube,运行test.sh发现TEST FAIL,以前是可以全部通过的。
尝试重启Docker 发现手机可以访问YouTube,但test仍报错,请大佬帮忙看看哪里出了问题,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions