dnsmasq vs pdnsd

2019-02-16 12:48:19 +08:00
 frylkrttj

dnsmasq 更 pdnsd 哪个更快。

为什么很多 dns 软件没做成跟 pdnsd 一样可以长缓存。

7882 次点击
所在节点    DNS
16 条回复
has
2019-02-16 14:15:06 +08:00
cache-size=65535
missdeer
2019-02-16 14:16:49 +08:00
锲而不舍安利一下 CoreDNS
neroxps
2019-02-16 14:19:49 +08:00
我只知道 dnsmasq 不支持 TCP 查询,pdnsd 支持~以上
ZackB0T
2019-02-16 18:04:43 +08:00
Pdnsd 不是早停止开发了么? unbound 吧,可以长缓。
frylkrttj
2019-02-16 18:28:25 +08:00
@ZackB0T unbound 重启后也能保存地址了吗?
ZE3kr
2019-02-16 18:35:06 +08:00
楼主是做 dns 权威服务器还是 dns 缓存服务器,还是本地进行 dns 代理?了解下 dnsdist,性能很高,新技术也都很快就能支持。
frylkrttj
2019-02-16 20:09:04 +08:00
@ZE3kr 缓存,最近总觉得上网卡,就想整下
frylkrttj
2019-02-16 20:21:06 +08:00
@ZE3kr 我被 PowerDNS 的缩写着 pdns 跟 pdnsd 搞混了好一阵,用这个 dnsdist 要上 PowerDNS 全家桶?
frylkrttj
2019-02-16 20:25:24 +08:00
@ZE3kr PowerDNS 的后端为什么是 sql 我越看越不懂了
ZE3kr
2019-02-17 07:55:39 +08:00
@frylkrttj 不用上全家桶。你说的 SQL 是 Authoritative Server,是权威服务器,给站长用的,不是你的使用场景。你的自己家用的缓存场景应该是 Recursor 或 dnsdist。前者是能实现自己搭建一个 dns 缓存服务器,不依赖其他 dns 缓存服务器。后者是能实现在多个 dns 缓存 /权威服务器间负载均衡。

https://doc.powerdns.com/

https://dnsdist.org/

“ The Authoritative Server will answer questions about domains it knows about, but will not go out on the net to resolve queries about other domains. When the Authoritative Server answers a question, it comes out of the database, and can be trusted as being authoritative. There is no way to pollute the cache or to confuse the daemon.

The Recursor, conversely, by default has no knowledge of domains itself, but will always consult other authoritative servers to answer questions given to it.”
yuedingwangji
2019-02-17 11:51:13 +08:00
@neroxps dnsmaq 怎么不支持 tcp.了
ZackB0T
2019-02-18 08:54:09 +08:00
@frylkrttj 不能,我用在路由器上
bclerdx
2019-02-19 19:35:16 +08:00
@ZackB0T 长缓是什么意思?
bclerdx
2019-02-19 19:40:14 +08:00
@ZE3kr dnsmasq 是不是可以认为是一种 dns 缓存服务器?
szpunk
2019-02-21 10:27:34 +08:00
@frylkrttj

unbound-control dump_cache > $CACHE_FILE

cat $CACHE_FILE | ${BINPATH}unbound-control load_cache

可以变相应用文件缓存。
frylkrttj
2019-02-21 11:23:17 +08:00
@szpunk #15 看不懂怎么用

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/535580

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX