
powerdns/pdns-recursor-53PowerDNS是由PowerDNS.COM BV及众多贡献者开发的开源DNS解决方案,采用GNU GPLv2许可。它集成了权威服务器(Authoritative Server)、递归器(Recursor)和dnsdist(DNS负载均衡器)三大组件,可满足企业级DNS服务的构建需求。完整文档请访问官方文档网站。
PowerDNS Docker镜像的详细说明请参考GitHub仓库文档。
通过Git克隆源代码仓库:
shgit clone [***]
仓库包含权威服务器、递归器和dnsdist的完整源代码,支持单独构建各组件。
权威服务器依赖Boost、OpenSSL、Lua等库,需C++17兼容编译器。
依赖安装
Debian系统:
sh# 基础依赖 apt install g++ libboost-all-dev libtool make pkg-config default-libmysqlclient-dev libssl-dev libluajit-5.1-dev python3-venv # Git源码额外依赖 apt install autoconf automake ragel bison flex
Ubuntu系统:
sh# 基础编译依赖 apt install libcurl4-openssl-dev luajit lua-yaml-dev libyaml-cpp-dev libtolua-dev lua5.3 autoconf automake ragel bison flex g++ libboost-all-dev libtool make pkg-config libssl-dev lua-yaml-dev libyaml-cpp-dev libluajit-5.1-dev libcurl4 gawk libsqlite3-dev python3-venv # DNSSEC ed25519支持 apt install libsodium-dev # MySQL后端支持 apt install default-libmysqlclient-dev # PostgreSQL后端支持 apt install libpq-dev # systemd服务支持 apt install libsystemd0 libsystemd-dev # GeoIP后端支持 apt install libmaxminddb-dev libmaxminddb0 libgeoip1 libgeoip-dev
编译步骤
生成配置文件:
shautoreconf -vi
基础编译(无模块版本):
sh./configure --with-modules="" --disable-lua-records make # 可选安装:make install
多模块编译(如Bind+MySQL+PostgreSQL):
sh./configure --with-modules="bind gmysql gpgsql"
注:添加特定后端模块需安装对应开发依赖(如PostgreSQL需libpq-dev)
更多编译细节参见官方编译文档。
若遇到C++11符号兼容性问题,可尝试:
sh./configure CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 # 或1,根据依赖调整
递归器编译说明见源码目录:pdns/recursordist/README.md
dnsdist编译说明见源码目录:pdns/README-dnsdist.md
基于Sphinx从ReStructured Text生成HTML文档:
生成文档位于shcd docs make html-docs
html-docs目录。gmake而非系统默认makeshexport CXXFLAGS=-std=c++17
shbrew install pdns
sh# 安装依赖 brew install boost lua pkg-config ragel openssl # 配置(指定OpenSSL路径) ./configure --with-modules="" PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig make -j4 # PostgreSQL支持:brew install postgresql,添加--with-modules="gpgsql" # MySQL支持:brew install mariadb,添加--with-modules="gmysql"
无特殊编译要求。
发现bug请先在GitHub Issues检查是否已报告,再提交新issue。






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务