Clash: 打开clashx之后,mac系统配置的hosts就会失效

Created on 9 Dec 2019  ·  3Comments  ·  Source: Dreamacro/clash

本地开发需要在hosts中添加域名解析到本地,只要打开clashx客户端,勾选设置为代理系统,就会无法通过域名访问

Most helpful comment

@yaoshanliang 在配置文件中,关闭dns

dns:
  enable: true # set true to enable dns (default is false)
  listen: 127.0.0.1:53
  nameserver:
     - 119.28.28.28
     - 114.114.114.114
  fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN
     - tls://1.0.0.1:853
     - tls://dns.google:853
dns:
  enable: false

All 3 comments

开启自定义 dns 是这样的,clash 自己也有 hosts,你可以直接设置 hosts 或关掉自定义 dns

开启自定义 dns 是这样的,clash 自己也有 hosts,你可以直接设置 hosts 或关掉自定义 dns

在哪里设置?可以同时使用内部hosts

@yaoshanliang 在配置文件中,关闭dns

dns:
  enable: true # set true to enable dns (default is false)
  listen: 127.0.0.1:53
  nameserver:
     - 119.28.28.28
     - 114.114.114.114
  fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN
     - tls://1.0.0.1:853
     - tls://dns.google:853
dns:
  enable: false
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ju0594 picture ju0594  ·  6Comments

hongyi-zhao picture hongyi-zhao  ·  4Comments

ingjieye picture ingjieye  ·  6Comments

Tsahao picture Tsahao  ·  4Comments

luvletter2333 picture luvletter2333  ·  5Comments