
如果你使用 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 Authoritative Server是一款功能强大的开源权威DNS服务器,版权归PowerDNS.COM BV及众多贡献者所有(2001-2021),采用GNU GPLv2许可证(详见NOTICE文件了解确切许可及例外条款)。该服务器支持多种后端存储,提供高性能和灵活的DNS服务配置,适用于各类DNS服务场景。
完整文档请访问:https://doc.powerdns.com/。最新更新请查阅https://doc.powerdns.com/authoritative/changelog/,编译相关信息可参考https://doc.powerdns.com/authoritative/appendices/compiling.html。问题反馈请提交至https://github.com/PowerDNS/pdns/issues(提交前请先检查是否已有相关issue)。
Docker镜像相关详细说明请参考:https://github.com/PowerDNS/pdns/blob/master/Docker-README.md
通过Git克隆完整源代码仓库:
shgit clone https://github.com/PowerDNS/pdns.git
该仓库包含PowerDNS Recursor、Authoritative Server和dnsdist的源代码,三者可独立构建并分别发布为.tar.bz2、.deb和.rpm包。
权威服务器编译依赖
PowerDNS Authoritative Server依赖Boost、OpenSSL、Lua,且需要支持C++-2011标准的编译器。
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 (Bionic Beaver)依赖安装
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 # 如需--enable-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" make
注意:编译特定模块需安装对应依赖(如PostgreSQL开发头文件)。更多后端模块信息见https://doc.powerdns.com/authoritative/backends/index.html。
sh./configure CPPFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 # 或1,根据依赖库ABI版本调整
详见源代码目录中的pdns/recursordist/README.md。
详见源代码目录中的pdns/README-dnsdist.md。
HTML文档(如https://doc.powerdns.com/authoritative/所示)由`docs`目录下的ReStructured Text (rst)文件通过Sphinx生成。
构建步骤:
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 ./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"无特殊说明。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务