Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

无法解析 google.com 的域名 #43

Closed
seekerlee opened this issue Sep 10, 2017 · 2 comments
Closed

无法解析 google.com 的域名 #43

seekerlee opened this issue Sep 10, 2017 · 2 comments

Comments

@seekerlee
Copy link

VRouter开启,一切正常,但是谷歌不能访问,浏览器告诉我无法解析域名
nodns1

配置:
dns

请问如何 debug?

VRouter 版本

v0.4.0-beta.2

操作系统版本

Win10

VRouter 应用内, "系统"标签页的信息

系统信息

当前网关: 10.19.28.37
当前 DNS: 10.19.28.37
VRouter 信息

WAN: 192.168.50.144
BR-LAN: 10.19.28.37
Bridged Network: Intel(R) Dual Band Wireless-AC 8265
Mac Address: 88:99:88:99:88:99
Openwrt Version: 15.05.1
Shadowsocks Version: 3.0.8
ShadowsocksR Version: 2.5.6
Kcptun Version: 20170525
LESS
进程状态

转发 DNS 查询: 运行中
转发 UDP 流量: 运行中
Shadowsocks 进程: 运行中
ShadowsocksR 进程: 未启用
Kcptun 进程: 未启用

暂停 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
  • Windows ( 请用 PowerShell 执行 ): nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log -tail 50 -Encoding UTF8

PS D:\Downloads\Video> nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log
-tail 50 -Encoding UTF8
服务器: RT-AC66U_B1-A838
Address: 192.168.50.1

非权威应答:
名称: qq.com
Address: 14.17.32.211

通过最多 5 个跃点跟踪
到 qq.com [14.17.32.211] 的路由:

1 <1 毫秒 <1 毫秒 <1 毫秒 192.168.50.1
2 2 ms 1 ms 1 ms 192.168.1.1
3 4 ms 18 ms 10 ms 101.229.88.1
4 5 ms 5 ms 5 ms 124.74.59.25
5 9 ms 6 ms 14 ms 124.74.209.181

跟踪完成。
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:17:10+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:17:10+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:17:10+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: 设置代理, 完成
2017-09-10T11:17:10+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:17:10+08:00 - debug: udp redirPort: 1040
2017-09-10T11:17:10+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:17:13+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:17:13+08:00 - info: apply editting profile: ss
2017-09-10T11:17:19+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:17:19+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:22:03+08:00 - info: save profile: ss to disk
2017-09-10T11:22:03+08:00 - debug: active profile: ss
2017-09-10T11:22:03+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\relay-udp.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:22:03+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\relayUDP,C:\Users\seeker\AppData\Local\Temp\relayUDPR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:22:03+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:22:03+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:22:03+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: 设置代理, 完成
2017-09-10T11:22:03+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:22:03+08:00 - debug: udp redirPort: 1040
2017-09-10T11:22:03+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:22:06+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:22:06+08:00 - info: apply editting profile: ss
2017-09-10T11:24:36+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:24:36+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:31:51+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:31:52+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:41:47+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:41:47+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:41:47+08:00 - debug: Router IP: 192.168.50.1
2017-09-10T11:44:03+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:44:03+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:44:03+08:00 - debug: about to trafficToPhysicalRouter
2017-09-10T11:44:03+08:00 - info: ssh connection has been ended
2017-09-10T11:44:03+08:00 - info: ssh connection was closed
2017-09-10T11:44:04+08:00 - debug: Router IP: 192.168.50.1

启用 VRouter 后, 以下命令(可一起执行)的执行结果

  • macOS: nslookup qq.com;/sbin/route -n get default;tail -n 50 ~/Library/Application\ Support/vrouter/vrouter.log
  • Windows ( 请用 PowerShell 执行 ): nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log -tail 50 -Encoding UTF8

PS D:\Downloads\Video> nslookup qq.com;tracert -d -w 1000 -h 5 qq.com;Get-Content ~/AppData/Roaming/vrouter/vrouter.log
-tail 50 -Encoding UTF8
服务器: vrouter.lan
Address: 10.19.28.37

非权威应答:
DNS request timed out.
timeout was 2 seconds.
名称: qq.com
Address: 14.17.32.211

通过最多 5 个跃点跟踪
到 qq.com [14.17.32.211] 的路由:

1 <1 毫秒 <1 毫秒 <1 毫秒 10.19.28.37
2 2 ms * 2 ms 192.168.50.1
3 3 ms 2 ms 3 ms 192.168.1.1
4 7 ms 5 ms 4 ms 101.229.88.1
5 5 ms 5 ms 6 ms 124.74.59.25

跟踪完成。
2017-09-10T11:17:10+08:00 - debug: active profile: ss
2017-09-10T11:17:10+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:17:10+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:17:10+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:17:10+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:17:10+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:17:10+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:17:10+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:17:10+08:00 - debug: 设置代理, 完成
2017-09-10T11:17:10+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:17:10+08:00 - debug: udp redirPort: 1040
2017-09-10T11:17:10+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:17:13+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:17:13+08:00 - info: apply editting profile: ss
2017-09-10T11:17:19+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:17:19+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:22:03+08:00 - info: save profile: ss to disk
2017-09-10T11:22:03+08:00 - debug: active profile: ss
2017-09-10T11:22:03+08:00 - debug: Generate cfg files: C:\Users\seeker\AppData\Local\Temp\tunnel-dns.json,C:\Users\seeker\AppData\Local\Temp\relay-udp.json,C:\Users\seeker\AppData\Local\Temp\shadowsocks.json
2017-09-10T11:22:03+08:00 - debug: 拷贝代理配置文件到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: Generate services files: C:\Users\seeker\AppData\Local\Temp\tunnelDns,C:\Users\seeker\AppData\Local\Temp\tunnelDnsR,C:\Users\seeker\AppData\Local\Temp\relayUDP,C:\Users\seeker\AppData\Local\Temp\relayUDPR,C:\Users\seeker\AppData\Local\Temp\shadowsocks
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDns
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/tunnelDnsR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDP
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/relayUDPR
2017-09-10T11:22:03+08:00 - debug: scp service file to: /etc/init.d/shadowsocks
2017-09-10T11:22:03+08:00 - debug: 拷贝代理管理脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - info: /etc/init.d/kcptun off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocksr off
2017-09-10T11:22:03+08:00 - info: /etc/init.d/shadowsocks on
2017-09-10T11:22:03+08:00 - debug: 启动关闭相应代理, 完成
2017-09-10T11:22:03+08:00 - debug: 拷贝代理监护脚本到虚拟机, 完成
2017-09-10T11:22:03+08:00 - debug: 设置代理, 完成
2017-09-10T11:22:03+08:00 - debug: tcp redirPort: 1010
2017-09-10T11:22:03+08:00 - debug: udp redirPort: 1040
2017-09-10T11:22:03+08:00 - debug: 设置防火墙, 完成
2017-09-10T11:22:06+08:00 - debug: 设置dnsmasq, 完成
2017-09-10T11:22:06+08:00 - info: apply editting profile: ss
2017-09-10T11:24:36+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:24:36+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:31:51+08:00 - info: bridgeServices: Intel(R) Dual Band Wireless-AC 8265,Intel(R) Ethernet Connection (2) I219-V,Intel(R) I211 Gigabit Network Connection,D-Link DWA-192 AC1900 Wi-Fi USB 3.0 Adapter
2017-09-10T11:31:52+08:00 - info: actived Bridge Service: Intel(R) Dual Band Wireless-AC 8265
2017-09-10T11:41:47+08:00 - debug: about to getAssignedHostonlyInf of vrouter. very slow on windows platform
2017-09-10T11:41:47+08:00 - debug: getAssignedHostonlyInf: VirtualBox Host-Only Ethernet Adapter #2
2017-09-10T11:41:47+08:00 - debug: Router IP: 192.168.50.1

@overcache
Copy link
Owner

谢谢反馈.
不知道你服务器有没有开 udp 转发呢? 如何开启?

@seekerlee
Copy link
Author

感谢,问题已解决。针对我的解决方法:

  1. 服务器的配置文件夹加上 "mode": "tcp_and_udp"
  2. 重启 shadowsocks 服务
  3. 防洪墙开放端口 iptables -A INPUT -p udp --dport 8989 -j ACCEPT

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants