Giter Club home page Giter Club logo

Comments (5)

PikuZheng avatar PikuZheng commented on June 11, 2024

rr-ttl-min=600会导致缓存ttl=600。
我记得它只对缓存起作用,不确定

from smartdns.

qwerttvv avatar qwerttvv commented on June 11, 2024

我还有一个不明白的,有的上游会私自改ttl,就是说不同上游相同域名得到的ttl可能会不一样,这个时候smartdns取哪个ttl啊

from smartdns.

PikuZheng avatar PikuZheng commented on June 11, 2024

不应该私自改ttl啊,ttl应该由域名所有者自主决定(所以我是不主张改ttl的)。
但是,假设一个dns服务器拿到某个域名的ttl=600并缓存,那么在10秒后应该从缓存取结果并给下游应答ttl=590。

min和max是个区间,结果超过这个区间了才会改

from smartdns.

qwerttvv avatar qwerttvv commented on June 11, 2024

不应该私自改ttl啊,ttl应该由域名所有者自主决定(所以我是不主张改ttl的)。 但是,假设一个dns服务器拿到某个域名的ttl=600并缓存,那么在10秒后应该从缓存取结果并给下游应答ttl=590。

min和max是个区间,结果超过这个区间了才会改

我发现阿里就改…
嗐,不过这个是题外话了,主要我想知道的还是如标题所述那个

from smartdns.

qwerttvv avatar qwerttvv commented on June 11, 2024

我自己试出来了,结论:没影响

first-ping第一次会下发一个3秒ttl的,无论你最小ttl和ttl设置多少,都3s。至于不同上游dns同一域名给的ttl不一致问题,我觉得不重要…

from smartdns.

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.