试试这个: rdr on lo0 inet proto udp from any to port 53 -> 127.0.0.1 port 5353
或者,把发往外部 DNS 服务器的 DNS 请求转交给本机端口: pass out log quick on wan0 route-to lo0 inet proto udp from any to 114.114.114.114 port 53 ( wan0 替换成你自己的 wan 口名称,114.114.114.114 替换成你本机实际往外发送的 DNS 服务器地址)
ipfw 的话,也许能用: ipfw nat 1 config if_lo0 redirect_port udp 114.114.114.114:53 5353 ipfw add divert 1 udp from me to 114.114.114.114 53 in