From 4f5cf3b559720c63071d936ff42d85f264dd87b1 Mon Sep 17 00:00:00 2001 From: Conners Hua Date: Fri, 29 May 2020 14:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A9=20Clash=20DNS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Clash/Global.yaml | 41 ++++++++++++++++++++--------------------- Quantumult/Global.conf | 6 +++++- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/Clash/Global.yaml b/Clash/Global.yaml index 9e00faa..570d028 100644 --- a/Clash/Global.yaml +++ b/Clash/Global.yaml @@ -49,28 +49,27 @@ hosts: # '*.clash.dev': 127.0.0.1 # 'alpha.clash.dev': '::1' -# dns: - # enable: true # set true to enable dns (default is false) - # ipv6: false # default is false - # listen: 0.0.0.0:53 - # # default-nameserver: # resolve dns nameserver host, should fill pure IP - # # - 114.114.114.114 - # # - 8.8.8.8 - # enhanced-mode: redir-host # or fake-ip - # # fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it - # fake-ip-filter: # fake ip white domain list - # - '*.lan' - # - localhost.ptlogin2.qq.com - # nameserver: +dns: + enable: true # set true to enable dns (default is false) + ipv6: false # default is false + listen: 0.0.0.0:53 + # default-nameserver: # resolve dns nameserver host, should fill pure IP # - 114.114.114.114 - # - tls://dns.rubyfish.cn:853 # dns over tls - # - https://1.1.1.1/dns-query # dns over https - # fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN - # - tcp://1.1.1.1 - # fallback-filter: - # geoip: true # default - # ipcidr: # ips in these subnets will be considered polluted - # - 240.0.0.0/4 + # - 8.8.8.8 + enhanced-mode: redir-host # or fake-ip + # fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it + fake-ip-filter: # fake ip white domain list + - '*.lan' + - localhost.ptlogin2.qq.com + nameserver: + - 119.29.29.29 + - 223.5.5.5 + fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN + - tcp://1.1.1.1 + fallback-filter: + geoip: true # default + ipcidr: # ips in these subnets will be considered polluted + - 240.0.0.0/4 proxies: # 支持的协议及加密算法示例请查阅 Clash 项目 README 以使用最新格式:https://github.com/Dreamacro/clash/blob/master/README.md diff --git a/Quantumult/Global.conf b/Quantumult/Global.conf index 627b90e..1ef9f0b 100755 --- a/Quantumult/Global.conf +++ b/Quantumult/Global.conf @@ -43,13 +43,17 @@ dns_exclusion_list = *.cmpassport.com, *.jegotrip.com.cn, *.icitymobile.mobi, *. [dns] -# 为了提高性能,会使用从当前网络(系统)中获取的DNS服务器(您可以使用「no-system」禁用此功能,但至少要增加一个自定义的DNS服务器,如「server=223.5.5.5.5」)。 # 查询结果只用于评估过滤器或通过直接策略连接,当通过服务器连接时,查询结果不会被使用,Quantumult 永远不会知道相关域名的目标 IP。 # 如果您想让某个域名(例如:example.com)为 127.0.0.0.1,只需在「filter_local」部分添加「host, example.com, reject」即可。拒绝操作将返回 127.0.0.0.1 的 DNS 响应。 # 禁用系统 DNS +# 为了提高性能,会使用从当前网络(系统)中获取的 DNS 服务器(您可以使用「no-system」禁用此功能,但至少要增加一个自定义的DNS服务器,如「server=223.5.5.5.5」)。 ;no-system +# 禁用 IPv6 +# 当设置「no-ipv6」时,Quanumult X Tunnel 的 DNS 模块会直接让 AAAA 查询失败。 +no-ipv6 + # 第三方 DNS server=119.29.29.29 server=223.5.5.5