我在家里放置了一个树莓派,搭建了 softether。softether 会提供一个域名 xxxx.softether.net 或者 xxxx.sedns.cn 。问题是这样的,我在家中通过路由器连接网络,该网络下所有设备都无法通过域名 ping 通但是能正确解析到 ip。而互联网(通过公共 wifi,移动数据连接)的其他设备,都可以经域名 /ip ping 通。 所以我想在家中通过域名访问,只能在每个设备上编辑 host 文件,强制映射 ip-域名。家中路由器已经将树莓派设置为 DMZ 主机。
通过互联网连接的设备 ping 树莓派
:~$ ping xxxx.softether.net PING xxxx.softether.net (65.24.224.xx) 56(84) bytes of data.
64 bytes from xxxxxx.insight.res.rr.com (65.24.224.xx): icmp_seq=1 ttl=46 time=200 ms
64 bytes from xxxxxx.insight.res.rr.com (65.24.224.xx): icmp_seq=2 ttl=46 time=35.4 ms
通过家中路由器连接的设备 ping 树莓派
:~ $ ping xxxx.softether.net PING xxxx.softether.net (65.24.224.xx) 56(84) bytes of data.
^C
--- xxxx.softether.net ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8323ms
请问各位,问题出在哪里?该如何解决?