V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
clacf
V2EX  ›  问与答

终于找到了一个可以用的 clash tun 模式可用的 dns 配置了

  •  
  •   clacf · 7 天前 · 647 次点击
    网上找了很多人的配置,试了一遍又一遍,总是多多少少存在域名解析失败的问题。

    dns:
    enable: true
    ipv6: false
    nameserver:
    - 114.114.114.114
    fallback:
    - 8.8.8.8
    fallback-filter:
    geoip: true
    ipcidr:
    - 240.0.0.0/4

    解释下逻辑,默认走 nameserver ,当解析出境外 IP,使用 fallback 进行二次解析。
    之前用过 https 的域名解析服务器,总是有解析失败的情况,不折腾了,换回这种最简单的。

    有木有人有优化指点呢?
    1 条回复    2024-09-11 13:28:31 +08:00
    hicdn
        1
    hicdn  
       7 天前
    geosite:cn 走国内 dns ,其余通过代理走境外 dns

    nameserver:
    - tls://1.1.1.1:853?enable_pipeline=true#Proxy
    - https://1.1.1.1/dns-query?enable_http3=true#Proxy
    - tls://8.8.8.8:853?enable_pipeline=true#Proxy
    nameserver-policy:
    "geosite:cn,private,apple": 114.114.114.114
    "geosite:geolocation-!cn": "tls://1.1.1.1:853?enable_pipeline=true#Proxy"
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5845 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 02:12 · PVG 10:12 · LAX 19:12 · JFK 22:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.