Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用DNS缓存时,cname记录未触发缓存CacheContains #72

Closed
1265578519 opened this issue Feb 23, 2022 · 2 comments
Closed

启用DNS缓存时,cname记录未触发缓存CacheContains #72

1265578519 opened this issue Feb 23, 2022 · 2 comments

Comments

@1265578519
Copy link

| 2022/2/24 3:04:12 127.0.0.1 : baidu.com. | A
|- CacheContains : baidu.com. | Count : 7
| 2022/2/24 3:04:12 127.0.0.1 : baidu.com. | A
| 2022/2/24 3:04:13 127.0.0.1 : baidu.com. | A
|- CacheContains : baidu.com. | Count : 7
|- CacheContains : baidu.com. | Count : 7
| 2022/2/24 3:04:13 127.0.0.1 : baidu.com. | A
|- CacheContains : baidu.com. | Count : 7
| 2022/2/24 3:04:18 127.0.0.1 : www.baidu.com. | A
| 2022/2/24 3:04:18 127.0.0.1 : www.baidu.com. | A
| 2022/2/24 3:04:19 127.0.0.1 : www.baidu.com. | A
| 2022/2/24 3:04:19 127.0.0.1 : www.baidu.com. | A
| 2022/2/24 3:04:20 127.0.0.1 : www.baidu.com. | A

不带www的直接输出a记录即可触发
image

@mili-tan
Copy link
Owner

mili-tan commented Feb 25, 2022

图片
在我的环境下测试正常。AuroraDNS 根据响应记录类型进行缓存,需要请求与响应记录类型一致才能够返回缓存的记录。

@1265578519
Copy link
Author

1265578519 commented Feb 25, 2022

图片 在我的环境下测试正常。AuroraDNS 根据响应记录类型进行缓存,需要请求与响应记录类型一致才能够返回缓存的记录。

好吧,那就是不支持这块缓存了,看输出了一个txt值是auroradns,可能是对方sdk源码不支持缓存功能
你可以直接dig不加cname,让他输出a记录结果,如果query time响应为0ms才代表支持缓存
举例使用dnsmasq做缓存,二次dig请求返回0ms代表成功缓存
image

@mili-tan mili-tan closed this as completed Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants