Replies: 5 comments 2 replies
-
当我尝试 ping 都某个域名的时候, |
Beta Was this translation helpful? Give feedback.
-
我尝试了把配置文件简化为 log:
level: info
plugins:
# 转发至 Google 服务器的插件
- tag: forward_google
type: forward
args:
upstreams:
- addr: 127.0.0.1:1053
# 在同一端口启动 udp 和 tcp 服务器。
- type: udp_server
args:
entry: forward_google
listen: 127.0.0.1:5533
- type: tcp_server
args:
entry: forward_google
listen: 127.0.0.1:5533 还是一样的,dns 请求没有转发给 1053 端口,我尝试了 zwyyy@zwy-mbp14 ~/.c/tpclash (main)> dig www.google.com @192.168.6.206 -p 5533 (base)
; <<>> DiG 9.10.6 <<>> www.google.com @192.168.6.206 -p 5533
;; global options: +cmd
;; connection timed out; no servers could be reached
root@armbian ~# lsof -i :5533
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mosdns 244894 root 3u IPv4 97529058 0t0 UDP localhost:5533
mosdns 244894 root 7u IPv4 97529059 0t0 TCP localhost:5533 (LISTEN) |
Beta Was this translation helpful? Give feedback.
-
容器部署创建时应该把 |
Beta Was this translation helpful? Give feedback.
-
应该检查你clash的配置 像这样 dns: enable: true #如果fallback为域名,用下列dns解析域名 enhanced-mode: fake-ip nameserver: fallback: |
Beta Was this translation helpful? Give feedback.
-
在主路由上,还需要关闭 wan 口的自动获取 DNS。 |
Beta Was this translation helpful? Give feedback.
-
docker-compose.yml 的内容如下
我目前是测试将所有的 dns 请求都转发到 tpclash 的 DNS 上去,但是 ping google.com 显示本地解析出来了真实的 IP,如果转发设置正确,应该返回 fakeip 才对吧。
docker logs mosdns
的输出如下:Beta Was this translation helpful? Give feedback.
All reactions