
如果你使用 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.COM BV及众多贡献者开发的DNS解决方案,版权所有© 2001-2020,采用GNU GPLv2许可(详见NOTICE文件了解确切许可和例外条款)。该解决方案包含三个核心组件:PowerDNS权威服务器(Authoritative Server)、PowerDNS递归解析器(Recursor)和dnsdist(强大的DNS负载均衡器)。所有组件可从同一源代码库构建,但分别以.tar.bz2、.deb和.rpm格式发布。完整文档请访问https://doc.powerdns.com/,最新更新建议查阅https://doc.powerdns.com/authoritative/changelog/。
PowerDNS Docker镜像的详细信息请参考https://github.com/PowerDNS/pdns/blob/master/Docker-README.md。
通过Git克隆源代码仓库:
shgit clone https://github.com/PowerDNS/pdns.git
权威服务器(Authoritative Server)编译
依赖要求:Boost、OpenSSL、Lua,以及支持C++11的编译器。
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(算法15)支持(需--with-libsodium) apt install libsodium-dev # gmysql后端(通用MySQL) apt install default-libmysqlclient-dev # gpgsql后端(通用PostgreSQL) apt install libpq-dev # 启用systemd支持(创建服务脚本,支持systemctl/service管理) 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" # 示例:bind、gmysql、gpgsql模块 make
注意:添加特定模块时需安装对应依赖(如PostgreSQL模块需安装libpq-dev)。更多编译细节请参考https://doc.powerdns.com/authoritative/appendices/compiling.html。
若遇到C++11相关符号问题,尝试通过
CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0(或1)参数调整兼容性:sh./configure CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
递归解析器(Recursor)编译
详见源代码中的pdns/recursordist/README.md。
dnsdist编译
详见源代码中的pdns/README-dnsdist.md。
PowerDNS官方文档由docs目录下的ReStructured Text(rst)文件通过Sphinx生成。
构建步骤:
安装编译依赖并生成配置文件:
shautoreconf -vi
进入docs目录执行构建命令:
shcd docs make html-docs
生成的HTML文档位于html-docs目录下。
FreeBSD
gmake而非系统默认makeshexport CXXFLAGS=-std=c++11
macOS
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报告请提交至https://github.com/PowerDNS/pdns/issues,提交前请先检查是否已有相关报告。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务