请问 fakeip 最后如何进行 dns 查询?

如题,sing-box 文档中并没有给出 fakeip 的 dns 相关配置(咱也不是很懂 fakeip

1 Like

参考:FakeIP - sing-box

  "dns": {
    "servers": [
      {
        "tag": "block",
        "address": "rcode://success"
      }
    ],
    "rules": [
      {
       "geosite": [ "xxx.com"],
        "query_type": [
          "A",
          "AAAA"
        ],
	"rewrite_ttl": 6,
	"disable_cache": false,
        "server": "remote"
      }
    ],
    "fakeip": {
        "enabled": true,
	"inet4_range": "198.18.0.0/15",
  	"inet6_range": "fc00::/64"
    }
  },
"inbounds": [
     {
       "type": "direct",
       "tag": "dns-in",
       "listen": "::",
       "listen_port": 53,
       "sniff": true
     },
    {
    ... ...
    }
  ],
  "outbounds": [
    {
      "type": "dns",
      "tag": "dns-out"
    },
    {
       ... ...
    }
  ],
  "route": {
    "rules": [
       {
	"protocol": "dns",
        "outbound": "dns-out"
      },
     {},
   ]


非常抱歉,可能是我没表达清楚(

{
    "tag": "remote",
    "address": "fakeip"
}

文档里的配置是把 remote 规则的 dns 查询扔到 fakeip 服务上,那 fakeip 查询环节中使用什么 dns 查询呢?

1 Like