由于权限问题没有搞定,开机启动的程序不能监听 53 端口,用 pf 把 53 端口转发到了 127.0.0.1 的 53 端口,本机使用 127.0.0.1 作为 DNS 可以正常使用,但是局域网其他机器就一直超时 DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. DNS request timed out. timeout was 2 seconds. *** 请求 UnKnown 超时 然后在本机上试了一下用局域网的 IP ,结果返回的是: ;; reply from unexpected source: 192.168.50.245#5533, expected 192.168.50.245#53
有办法能解决这个问题吗
pf 配置是这样写的: rdr pass on lo0 inet proto udp from any to any port 53 -> 127.0.0.1 port 5533 rdr pass on en0 inet proto udp from any to any port 53 -> 127.0.0.1 port 5533