各位,为什么这个 sing-box 配置 dns 不行,打开网页总是说查不到网址? dns 部分的配置请见内。

2023-11-06 16:42:49 +08:00
 busuzhike

"dns": {

"servers": [
  {
    "tag": "proxyDns",
    "address": "8.8.8.8",
    "detour": "proxy"
  },
  {
    "tag": "localDns",
    "address": "https://223.5.5.5/dns-query",
    "detour": "direct"
  },
  {
    "tag": "block",
    "address": "rcode://success"
  },
  {
    "tag": "remote",
    "address": "fakeip"
  }
],
"rules": [
  {
    "domain": [
      "ghproxy.com",
      "cdn.jsdelivr.net",
      "testingcf.jsdelivr.net"
    ],
    "server": "localDns"
  },
  {
    "geosite": "category-ads-all",
    "server": "block"
  },
  {
    "outbound": "any",
    "server": "localDns",
    "disable_cache": true
  },
  {
    "geosite": "cn",
    "server": "localDns"
  },
  {
    "clash_mode": "direct",
    "server": "localDns"
  },
  {
    "clash_mode": "global",
    "server": "proxyDns"
  },
  {
    "geosite": "geolocation-!cn",
    "server": "proxyDns"
  },
  {
    "query_type": [
      "A",
      "AAAA"
    ],
    "server": "remote"
  }
],
"fakeip": {
  "enabled": true,
  "inet4_range": "198.18.0.0/15",
  "inet6_range": "fc00::/18"
},
"independent_cache": true,
"strategy": "ipv4_only"

},

1996 次点击
所在节点    宽带症候群
1 条回复
busuzhike
2023-11-07 08:36:46 +08:00
折腾半天,问题在 auto-route ,官网说 macos 不支持 dns 劫持,可我是在 Windows 上,看来也不行,改成 false 就可以了,不是 dns 设置问题。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/989184

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX