frylkrttj
V2EX  ›  DNS

dnsmasq vs pdnsd

  •  
  •   frylkrttj · Feb 16, 2019 · 9218 views
    This topic created in 2821 days ago, the information mentioned may be changed or developed.

    dnsmasq 更 pdnsd 哪个更快。

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

    16 replies  •  2019-02-21 11:23:17 +08:00
    has
    has
    Feb 16, 2019
    1
    cache-size=65535
    missdeer
    missdeer
    Feb 16, 2019
    2
    锲而不舍安利一下 CoreDNS
    neroxps
    neroxps
    Feb 16, 2019
    3
    我只知道 dnsmasq 不支持 TCP 查询,pdnsd 支持~以上
    ZackB0T
    ZackB0T
    Feb 16, 2019 via Android
    4
    Pdnsd 不是早停止开发了么? unbound 吧,可以长缓。
    frylkrttj
    frylkrttj
    OP
    Feb 16, 2019
    5
    @ZackB0T unbound 重启后也能保存地址了吗?
    ZE3kr
    ZE3kr
    Feb 16, 2019 via iPhone
    6
    楼主是做 dns 权威服务器还是 dns 缓存服务器,还是本地进行 dns 代理?了解下 dnsdist,性能很高,新技术也都很快就能支持。
    frylkrttj
    frylkrttj
    OP
    Feb 16, 2019
    7
    @ZE3kr 缓存,最近总觉得上网卡,就想整下
    frylkrttj
    frylkrttj
    OP
    Feb 16, 2019
    8
    @ZE3kr 我被 PowerDNS 的缩写着 pdns 跟 pdnsd 搞混了好一阵,用这个 dnsdist 要上 PowerDNS 全家桶?
    frylkrttj
    frylkrttj
    OP
    Feb 16, 2019❤️1
    9
    @ZE3kr PowerDNS 的后端为什么是 sql 我越看越不懂了
    ZE3kr
    ZE3kr
    Feb 17, 2019 via iPhone
    10
    @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
    yuedingwangji
    Feb 17, 2019 via Android
    11
    @neroxps dnsmaq 怎么不支持 tcp.了
    ZackB0T
    ZackB0T
    Feb 18, 2019 via Android
    12
    @frylkrttj 不能,我用在路由器上
    bclerdx
    bclerdx
    Feb 19, 2019 via Android
    13
    @ZackB0T 长缓是什么意思?
    bclerdx
    bclerdx
    Feb 19, 2019 via Android
    14
    @ZE3kr dnsmasq 是不是可以认为是一种 dns 缓存服务器?
    szpunk
    szpunk
    Feb 21, 2019
    15
    @frylkrttj

    unbound-control dump_cache > $CACHE_FILE

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

    可以变相应用文件缓存。
    frylkrttj
    frylkrttj
    OP
    Feb 21, 2019
    16
    @szpunk #15 看不懂怎么用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1382 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 01:03 · PVG 09:03 · LAX 17:03 · JFK 20:03
    ♥ Do have faith in what you're doing.