
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
PowerDNS 是一个功能全面的DNS解决方案,包含PowerDNS权威服务器、PowerDNS递归器(Recursor)和dnsdist(强大的DNS负载均衡器)。该项目版权归PowerDNS.COM BV及众多贡献者所有(2001-2021),采用GNU GPLv2许可(详见NOTICE文件了解确切许可和例外条款)。所有官方文档可在https://doc.powerdns.com/获取,本文档可能存在更新延迟,最新变更请查阅https://doc.powerdns.com/authoritative/changelog/。
Docker镜像相关信息请参考https://github.com/PowerDNS/pdns/blob/master/Docker-README.md。
PowerDNS源代码托管于GitHub,可通过以下命令克隆:
shgit clone https://github.com/PowerDNS/pdns.git
权威服务器编译
依赖要求:
Debian 9系统依赖安装:
shapt install g++ libboost-all-dev libtool make pkg-config default-libmysqlclient-dev libssl-dev libluajit-5.1-dev python3-venv
从Git源码编译额外依赖:
shapt install autoconf automake ragel bison flex
Ubuntu 18.04系统依赖安装:
shapt 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 # 可选安装
sh./configure --with-modules="bind gmysql gpgsql" make
详细编译说明请参考https://doc.powerdns.com/authoritative/appendices/compiling.html。如遇到C++11符号问题,可尝试通过`CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0`(或1)参数调整兼容性。
递归器编译
递归器编译说明请参考源码目录中的pdns/recursordist/README.md。
dnsdist编译
dnsdist编译说明请参考源码目录中的pdns/README-dnsdist.md。
PowerDNS文档基于ReStructured Text(rst)文件构建,使用Sphinx工具生成HTML格式。
构建步骤:
shautoreconf -vi
shcd docs make html-docs
生成的HTML文档位于html-docs目录下。
gmake而非系统默认makeshexport CXXFLAGS=-std=c++11
shbrew install pdns
shbrew install boost lua pkg-config ragel openssl
sh./configure --with-modules="" PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig make -j4
brew install postgresql,配置时添加--with-modules="gpgsql"brew install mariadb,配置时添加--with-modules="gmysql"无特殊注意事项。
Bug报告请提交至https://github.com/PowerDNS/pdns/issues,提交前请先检查是否已有相同问题。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务