Coder Social home page Coder Social logo

可能会影响某些dns解析 about clash HOT 4 CLOSED

dreamacro avatar dreamacro commented on July 22, 2024
可能会影响某些dns解析

from clash.

Comments (4)

beyondkmp avatar beyondkmp commented on July 22, 2024

下面分析的都是直接curl请求的时候抓包分析的:
dns正常解析的:
dns_suc
dns解析非常长的时间,从下图可以看到足足花了10s钟来dns解析:
dns_failed

从上面的抓包来看,现在底层的dns resovel的时候都会请求A和AAAA记录,正常的都返回两个记录,即使没有AAAA记录也会返回一个空。

但是不正常的那个域名,就是一直不返回AAAA记录,使的底层去重复请求了三次,最后才用了A记录。这样可以判断是那个不正常的域名的权威dns服务器的配置是有问题的。还有为什么切换了114.114.114.114就正常了,应该是114.114.114.114上面有缓存了,所以会正常。等没有缓存的时候,可能又会出错。

还有为什么不开clash用浏览器是直接可以打开的,浏览器是没有直接调用底层的dns 解析库,是自己实现一个dns 服务器和客户端,所以他的解析流程和系统底层dns解析库是不一样的。他应该是有解析返回A记录,就直接用A记录了。surge目前也是有自己的dns解析,所以也不会出问题。

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

使用新版的自定义配置试试

from clash.

beyondkmp avatar beyondkmp commented on July 22, 2024

我已经试了,chinacdc.com 这个域名是没有问题的。 @TomatoFryEggs 你试试你的那个域名 行不行,看下是不是同一个问题?

from clash.

Dreamacro avatar Dreamacro commented on July 22, 2024

如果使用自定义 DNS 不能解决再重新打开这个 issue

from clash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.