Comments (3)
对权威DNS服务器来说,记录的TTL是固定的,代表这个记录可以被缓存的时间。对于递归DNS服务器或缓存服务器(比如ts-dns)来说,这个值是动态的,代表这个记录的缓存再过多久会失效、需要重新向权威服务器查询。
from ts-dns.
我不明白的就是这点,如果是动态的话,过期时间到底是看min_ttl还是max_ttl
from ts-dns.
抱歉,没解释清楚。
即使上游dns告诉ts-dns:“你查到的dns记录马上就要过期了”,ts-dns也会在min_ttl
秒后才会再次向上游dns请求相同的记录;
即使上游dns告诉ts-dns:“你查到的dns永远不会过期”,ts-dns也会在max_ttl
秒后就再次向上游dns请求相同的记录。
总而言之,min_ttl
和max_ttl
存在的意义就是保证ts-dns里dns记录被缓存的时间不至于太长或太短。
from ts-dns.
Related Issues (20)
- Lost CNAME record when answering dns requests? HOT 11
- 判定域名是否被污染的几个方法供作者参考 HOT 7
- 能否增加选项:clean组dns返回IP中包含非CN IP时,直接转发到dirty组dns(略过gfwlist判断步骤)? HOT 13
- win10下重新加载配置文件命令报错 HOT 4
- ipset提前创建好时,会遇到问题 HOT 3
- How do run in the background in win10? HOT 2
- 提个建议,希望作者能把最近新的DNS TYPE65请求屏蔽功能增加上,谢谢 HOT 5
- Commit fc7f2cc 运行一段时间就出错退出 HOT 2
- rules在最新版失效
- 可以将查询结果中的IPv6地址也添加至IPSet中吗 HOT 3
- 建议增加SIGHUP处理 HOT 2
- 无法以服务或守护进程方式工作,略有遗憾,但效果很不错,已经弃用smartdns HOT 1
- fastest ipv4 报错。 HOT 9
- 请提供FreeBSD arm64.aarch64下的程序
- 对 IPv6 AAAA 记录的归类有问题? HOT 3
- 等一个路由器的luci-all-TSDNS
- panic when timeout
- 支持对指定group禁用ipv6查询 HOT 1
- 支持Linux 格式的hosts 文件? HOT 2
- 请完善文件路径问题,
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-dns.