V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
frylkrttj
V2EX  ›  DNS

dnsmasq vs pdnsd

  •  
  •   frylkrttj · 2019-02-16 12:48:19 +08:00 · 7843 次点击
    这是一个创建于 1867 天前的主题,其中的信息可能已经有所发展或是发生改变。

    dnsmasq 更 pdnsd 哪个更快。

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

    16 条回复    2019-02-21 11:23:17 +08:00
    has
        1
    has  
       2019-02-16 14:15:06 +08:00
    cache-size=65535
    missdeer
        2
    missdeer  
       2019-02-16 14:16:49 +08:00
    锲而不舍安利一下 CoreDNS
    neroxps
        3
    neroxps  
       2019-02-16 14:19:49 +08:00
    我只知道 dnsmasq 不支持 TCP 查询,pdnsd 支持~以上
    ZackB0T
        4
    ZackB0T  
       2019-02-16 18:04:43 +08:00 via Android
    Pdnsd 不是早停止开发了么? unbound 吧,可以长缓。
    frylkrttj
        5
    frylkrttj  
    OP
       2019-02-16 18:28:25 +08:00
    @ZackB0T unbound 重启后也能保存地址了吗?
    ZE3kr
        6
    ZE3kr  
       2019-02-16 18:35:06 +08:00 via iPhone
    楼主是做 dns 权威服务器还是 dns 缓存服务器,还是本地进行 dns 代理?了解下 dnsdist,性能很高,新技术也都很快就能支持。
    frylkrttj
        7
    frylkrttj  
    OP
       2019-02-16 20:09:04 +08:00
    @ZE3kr 缓存,最近总觉得上网卡,就想整下
    frylkrttj
        8
    frylkrttj  
    OP
       2019-02-16 20:21:06 +08:00
    @ZE3kr 我被 PowerDNS 的缩写着 pdns 跟 pdnsd 搞混了好一阵,用这个 dnsdist 要上 PowerDNS 全家桶?
    frylkrttj
        9
    frylkrttj  
    OP
       2019-02-16 20:25:24 +08:00   ❤️ 1
    @ZE3kr PowerDNS 的后端为什么是 sql 我越看越不懂了
    ZE3kr
        10
    ZE3kr  
       2019-02-17 07:55:39 +08:00 via iPhone
    @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
        11
    yuedingwangji  
       2019-02-17 11:51:13 +08:00 via Android
    @neroxps dnsmaq 怎么不支持 tcp.了
    ZackB0T
        12
    ZackB0T  
       2019-02-18 08:54:09 +08:00 via Android
    @frylkrttj 不能,我用在路由器上
    bclerdx
        13
    bclerdx  
       2019-02-19 19:35:16 +08:00 via Android
    @ZackB0T 长缓是什么意思?
    bclerdx
        14
    bclerdx  
       2019-02-19 19:40:14 +08:00 via Android
    @ZE3kr dnsmasq 是不是可以认为是一种 dns 缓存服务器?
    szpunk
        15
    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
        16
    frylkrttj  
    OP
       2019-02-21 11:23:17 +08:00
    @szpunk #15 看不懂怎么用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3260 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 14:05 · PVG 22:05 · LAX 07:05 · JFK 10:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.