internetsystemsconsortium/bind9!BIND9 logo
ISC官方BIND 9 Docker仓库。本Docker镜像为免费提供,ISC将尽力维护。
使用时需正确挂载以下卷:
etc/bind - 用于存放配置文件,named.conf 需放置于此/var/cache/bind - 工作目录,例如配置中需设置 options { directory "/var/cache/bind"; };/var/lib/bind - 通常用于存放辅助区域文件/var/log - 日志文件存放目录bashdocker run \ --name=bind9 \ --restart=always \ --publish 53:53/udp \ --publish 53:53/tcp \ --publish 127.0.0.1:953:953/tcp \ internetsystemsconsortium/bind9:9.18
bashdocker run \ --name=bind9 \ --restart=always \ --publish 53:53/udp \ --publish 53:53/tcp \ --publish 127.0.0.1:953:953/tcp \ internetsystemsconsortium/bind9:9.20
此处需手动提供 /etc/bind/named.conf 配置文件及主区域文件等(即需手动配置,无默认配置)。
bashdocker run \ --name=bind9 \ --restart=always \ --publish 53:53/udp \ --publish 53:53/tcp \ --publish 127.0.0.1:953:953/tcp \ --volume /etc/bind \ --volume /var/cache/bind \ --volume /var/lib/bind \ --volume /var/log \ internetsystemsconsortium/bind9:9.18
bashdocker run \ --name=bind9 \ --restart=always \ --publish 53:53/udp \ --publish 53:53/tcp \ --publish 127.0.0.1:953:953/tcp \ --volume /etc/bind \ --volume /var/cache/bind \ --volume /var/lib/bind \ --volume /var/log \ internetsystemsconsortium/bind9:9.20
递归DNS服务器无需额外配置,直接运行即可。
以下为权威DNS服务器的基础配置示例:
options { directory "/var/cache/bind"; // 工作目录 listen-on { 127.0.0.1; }; // 监听IPv4地址 listen-on-v6 { ::1; }; // 监听IPv6地址 allow-recursion { none; }; // 禁止递归查询 allow-transfer { none; }; // 禁止区域传输 allow-update { none; }; // 禁止动态更新 }; zone "example.com." { // 定义example.com区域 type primary; // 类型为主区域 file "/var/lib/bind/db.example.com"; // 区域文件路径 notify explicit; // 显式通知从服务器 };
bind-users邮件列表([***]BIND9基于MPL2.0许可证开源。



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务