shakukansp
V2EX  ›  互联网

clashmeta 如何让 dns 查询通过指定的策略或者节点再进行解析?

  •  
  •   shakukansp · Jul 3, 2025 · 1350 views
    This topic created in 317 days ago, the information mentioned may be changed or developed.

    场景是内网的域名需要走另一个机器进行解析

    但是那台机器的内网网络本机不能直接访问,需要过一个 socks5 代理

    比如 需要通过内网解析的域名为 +.cts.com , nameserver 为 192.168.6.1 ,但是需要通过 192.168.10.1:7890 的代理服务才能访问,假如组策略或者节点名称为 pxy

    应该用 nameserver-policy 分流?

    试了下

    - +.cts.com
      - '192.168.6.1#pxy'
    

    没效果

    2 replies    2025-07-05 10:29:43 +08:00
    futuretech6
        1
    futuretech6  
       Jul 3, 2025
    那就加一个 IP-CIDR,192.168.6.1/32,internal-proxy,no-resolve 的解析规则,然后开启 [respect-rules]( https://wiki.metacubex.one/config/dns/#respect-rules)
    daisyfloor
        2
    daisyfloor  
       Jul 5, 2025
    nameserver:
    - https://8.8.8.8/dns-query#Proxy
    - https://1.1.1.1/dns-query#Proxy
    nameserver-policy:
    'geosite:cn': [223.5.5.5, 114.114.114.114, 119.29.29.29]

    没有任何问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2948 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 06:13 · PVG 14:13 · LAX 23:13 · JFK 02:13
    ♥ Do have faith in what you're doing.