@SurgeTeam
环境
- 设备:mac mini, synology, mac mbp
- surge ponte+gateway+dhcp+enhanced_mode 在 mini, ponte 走公网 ip 的模式
- synology docker macvlan adguardhome
- 主路由
x.x.x.1
, mini x.x.x.8
, synology, x.x.x.66
, dhcp netmask 255.255.255.0
- adguardhome
x.x.x.77
所有设备配置 dns-server = x.x.x.77, 223.5.5.5, 119.29.29.29
问题
- 在家时,所有设备,mini/ios/mbp , dns-server
x.x.x.77
一切正常
- mbp 在外,命令行
dig @x.x.x.77 baidu.com
一切正常,但是 surge conf 里配置的 dns-server x.x.x.77
无效
这里的无效指的是,dns 走的全部都是 223.5.5.5 和 119.29.29.29,没有走 x.x.x.77
mbp 在外使用时,终端 dig 结果
结果显示 223.5.5.5 已经 x.x.x.77 都能正常解析 baidu.com
; <<>> DiG 9.10.6 <<>> @223.5.5.5 baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30947
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1408
;; QUESTION SECTION:
;baidu.com. IN A
;; ANSWER SECTION:
baidu.com. 581 IN A 110.242.68.66
baidu.com. 581 IN A 39.156.66.10
;; Query time: 101 msec
;; SERVER: 223.5.5.5#53(223.5.5.5)
;; WHEN: Tue Jun 04 14:52:52 CST 2024
;; MSG SIZE rcvd: 70
; <<>> DiG 9.10.6 <<>> @x.x.x.77 baidu.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48969
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;baidu.com. IN A
;; ANSWER SECTION:
baidu.com. 1533 IN A 110.242.68.66
baidu.com. 1533 IN A 39.156.66.10
;; Query time: 98 msec
;; SERVER: x.x.x.77#53(192.168.31.70)
;; WHEN: Tue Jun 04 15:01:06 CST 2024
;; MSG SIZE rcvd: 70