
PowerDNS是由PowerDNS.COM BV及众多贡献者开发的开源DNS解决方案,采用GNU GPLv2许可证。该项目包含三个核心组件:PowerDNS权威服务器、PowerDNS递归解析器(Recursor)和dnsdist(DNS负载均衡器),所有组件可从同一代码库构建,并分别以.tar.bz2、.deb和.rpm格式发布。
获取源代码
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 # 从源码构建时额外需要 apt 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
编译递归解析器
递归解析器的编译说明位于源码目录的pdns/recursordist/README.md。
编译dnsdist
dnsdist的编译说明位于源码目录的pdns/README-dnsdist.md。
Docker镜像使用
PowerDNS Docker镜像的详细信息请参考官方文档:https://github.com/PowerDNS/pdns/blob/master/Docker-README.md
构建HTML文档
docs目录:shcd docs make html-docs
html-docs目录下。gmake而非系统默认make,并设置CXXFLAGS=-std=c++17brew install pdns;手动编译需指定OpenSSL路径:
shbrew install boost lua pkg-config ragel openssl ./configure --with-modules="" PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig make -j4
如遇问题,请先在https://github.com/PowerDNS/pdns/issues%E6%A3%80%E6%9F%A5%E6%98%AF%E5%90%A6%E5%B7%B2%E6%9C%89%E7%9B%B8%E5%85%B3%E6%8A%A5%E5%91%8A%EF%BC%8C%E5%86%8D%E6%8F%90%E4%BA%A4%E6%96%B0issue%E3%80%82
完整文档请访问:PowerDNS官方文档
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务