
如果你使用 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 权威服务器(PowerDNS Authoritative Server)是由PowerDNS.COM BV及众多贡献者开发的DNS服务器软件,采用GNU GPLv2许可证(详见NOTICE文件了解确切许可条款和例外)。该软件主要用于提供域名解析服务,支持多种后端存储和灵活的模块配置,适用于构建企业级DNS服务、域名解析服务器等场景。
所有官方文档可访问 https://doc.powerdns.com/ 获取,最新更新请查看 https://doc.powerdns.com/authoritative/changelog/。
Docker镜像相关说明请参考官方GitHub文档:https://github.com/PowerDNS/pdns/blob/master/Docker-README.md
通过Git获取源码:
shgit clone https://github.com/PowerDNS/pdns.git
该仓库包含PowerDNS Recursor、PowerDNS Authoritative Server和dnsdist的源代码,支持分别构建或打包为.tar.bz2、.deb、.rpm等格式。
依赖要求
Debian系统依赖安装
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系统依赖安装
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支持(算法15) 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
注意:添加特定后端模块时需确保已安装相应开发库(如PostgreSQL模块需libpq-dev)
更多编译细节请参考:https://doc.powerdns.com/authoritative/appendices/compiling.html
参考源码目录中的文档:pdns/recursordist/README.md
参考源码目录中的文档:pdns/README-dnsdist.md
HTML文档基于ReStructured Text(rst)文件构建,使用Sphinx工具生成:
shautoreconf -vi
shcd docs make html-docs
生成的HTML文档位于html-docs目录下。
gmake而非系统默认makeshexport CXXFLAGS=-std=c++17
shbrew install pdns
shbrew install boost lua pkg-config ragel openssl ./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,请先在GitHub Issues中检查是否已报告,再提交新issue:https://github.com/PowerDNS/pdns/issues
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务