跳至正文
Wener Notes

PowerDNS

约 1 分钟阅读
    • GPLv2, C
  • PowerDNS Recursor
  • PowerDNS DNSdist
  • PowerDNS Cloud Control
  • PowerDNS Dstore
  • PowerDNS Lightning Stream
  • ZoneControl
  • 参考
特性Auth/权威服务器Rec/递归解析器dnsdist/分发器
主要角色存储和提供 DNS 记录为客户端查找 DNS 记录负载均衡、过滤和路由 DNS 流量
数据来源自身后端存储(数据库等)从其他 DNS 服务器获取并缓存不存储记录,转发请求
查询处理提供权威答案执行递归查询转发、过滤和缓存查询
典型场景托管域名提供 DNS 解析服务保护和扩展 DNS 基础设施

recursor

doc.powerdns.com/md/recursor/settings

bash
# macOS 安装
brew install pdnsrec

# 生成配置文件
pdns_recursor --config > recursor.conf

# 测试本地启动
pdns_recursor --daemon=no --local-port=5003 --socket-dir=$PWD --config-dir=$PWD

# 启动 53 端口需要 root
# LOCALSTATEDIR 控制 socket-dir
sudo LOCALSTATEDIR=$PWD pdns_recursor --config-dir=$PWD

sudo rec_control --config-dir=$PWD --socket-dir=$PWD ping
ini
# ==========
# simple
# ==========
allow-from=0.0.0.0/0
daemon=no
local-address=127.0.0.1
local-port=53
reuseport=yes
forward-zones=.=8.8.8.8

# ==========
# webserver
# ==========
#
webserver=yes
webserver-port=8082
api-key=key

dnsdist

  • DNS loadbalancer
  • by PowerDNS

关联信息

反向链接、本文链接的其他页面和外部资料。

反向链接

  • DNS Awesome
    笔记 · pdns

    选择支持分流的 DNS 服务、支持 DoH/DoT 解析的服务 · AdGuard、PiHole · 默认走国内 DNS · 因为国内很多服务 CDN 依赖 DNS 解析,使用国外 DNS 可能导致 CDN 出问题,访问非常慢或打不开 · 国内 DNS 更快

站内链接

  • Authoritative Server
    笔记 · Authoritative Server

    PowerDNS/pdns · GPLv2, C · 特性 · 多种后端 · 多种复制方式 · 修改不需要重启 · 定制缓存 · Supermaster · 当为一个节点设置了 Supermaster 后,在主节点上创建 zone,所有子节点会自动创建相应的 zone, 并发起一个 AXFR 请求

参考资料

GitHub1 条
其他外链2 条
最近更新commit 330e326编辑