# BIND

**BIND**（Berkeley Internet Name Domain）是一套开源域名系统（DNS）软件套件，由互联网系统联盟（Internet Systems Consortium，ISC）维护，包含权威名称服务器、递归解析器以及 `dig`、`rndc` 等相关工具。它最初于20世纪80年代初在加州大学伯克利分校（University of California, Berkeley）编写，是持续开发时间最长的互联网服务器程序之一。一份行业刊物估计，全球约八成的DNS服务器由它驱动。<sup>[1](https://www.isc.org/bindhistory/)</sup><sup> • </sup><sup>[2](https://www.itpro.com/domain-name-system-dns/30228/what-is-dns)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 20世纪80年代初加州大学伯克利分校的研究生项目，由DARPA拨款资助；最初的团队包括道格拉斯·特里（Douglas Terry）、马克·佩因特（Mark Painter）、大卫·里格尔（David Riggle）和周松年（Songnian Zhou）<sup>[1](https://www.isc.org/bindhistory/)</sup> |
| 当前主线 | BIND 9，2000年9月发布，对BIND架构的几乎所有方面进行了大规模重写<sup>[3](https://bind9.readthedocs.io/en/v9.18.14/history.html)</sup> |
| 许可证 | BIND 9.11.0及更高版本采用MPL 2.0，2016年宣布<sup>[1](https://www.isc.org/bindhistory/)</sup> |
| 角色 | 一个 `named` 进程可以同时充当某些区域的主服务器、另一些区域的从服务器，以及本地客户端的缓存（递归）服务器<sup>[4](https://bind9.readthedocs.io/en/v9.18.3/introduction.html)</sup> |
| 安全特性 | DNSSEC签名与验证、DNS-over-TLS（RFC 7858）、DNS-over-HTTPS（RFC 8484）、响应策略区、响应速率限制<sup>[5](https://kb.isc.org/docs/aa-01310)</sup><sup> • </sup><sup>[6](https://www.isc.org/blogs/dns-complexity-survey-2020/)</sup> |
| 当前发布版本 | 9.20.29（当前稳定扩展支持版本，生命周期2028年第二季度结束）和9.21.26（开发分支），2026年9月<sup>[7](https://www.isc.org/bind/index.html)</sup> |
| 平台 | 可在任何符合POSIX标准、配有C11编译器的系统上构建；定期在Debian、Ubuntu LTS、Fedora、RHEL/CentOS/AlmaLinux、FreeBSD和Alpine Linux上测试<sup>[8](https://bind9.readthedocs.io/en/stable/chapter2.html)</sup> |

## 历史

20世纪80年代初，加州大学伯克利分校的研究生在美国国防高级研究计划局（DARPA）的拨款资助下开发了Berkeley Internet Name Domain软件包。直到4.8.3的各个版本由加州大学伯克利分校的计算机系统研究组（Computer Systems Research Group，CSRG）维护。[数字设备公司](https://www.edgepedia.org/zh/digital-equipment-corporation)（Digital Equipment Corporation，DEC）借调至CSRG的员工[凯文·邓拉普](https://www.edgepedia.org/zh/kevin-dunlap)（Kevin Dunlap）在1985年至1987年间参与BIND开发，DEC发布了BIND 4.9和4.9.1，由保罗·维西（Paul Vixie）担任主要维护者。从4.9.3版起，开发工作转移到互联网软件联盟（Internet Software Consortium），即ISC的前身。<sup>[1](https://www.isc.org/bindhistory/)</sup><sup> • </sup><sup>[3](https://bind9.readthedocs.io/en/v9.18.14/history.html)</sup>

**BIND 8与BIND 9。** 鲍勃·哈利（Bob Halley）和保罗·维西于1997年5月发布了首个可用于生产环境的BIND 8。BIND 9于2000年9月发布，对底层架构的几乎所有方面进行了大规模重写；其首个正式发布版引入了DNSSEC签名区域、TSIG签名请求、IPv6支持、IXFR增量区域传送、动态更新（DDNS）、NOTIFY、EDNS0、命名空间的多“视图”以及多处理器支持。<sup>[3](https://bind9.readthedocs.io/en/v9.18.14/history.html)</sup><sup> • </sup><sup>[9](https://lists.isc.org/pipermail/bind-announce/2000-September/000030.html)</sup>

**BIND 10插曲。** 2009年，ISC启动了一个从零重写的项目，名为BIND 10，这是一个合作项目，出资方主要来自国家和地区顶级域名社群。ISC于2014年终止了BIND 10的开发，重新聚焦于BIND 9，在此期间马克·安德鲁斯（Mark Andrews）和[埃文·亨特](https://www.edgepedia.org/zh/evan-hunt)（Evan Hunt）一直是BIND 9的共同维护者。2016年，ISC宣布BIND 9.11.0及更高版本将按MPL 2.0许可证分发；2018年，项目迁移到自托管的GitLab实例，对外部贡献者开放。<sup>[1](https://www.isc.org/bindhistory/)</sup>

## BIND的功能

DNS将命名空间划分为区域，每个区域至少由一个权威名称服务器提供服务，该服务器持有该区域的完整数据。在BIND中，主区域从本地区域文件读取数据，而从区域则通过AXFR（全量）或IXFR（增量）区域传送从主服务器获取数据；两者对查询的回答完全相同，解析器无法分辨某个回答由哪一方提供。为向后兼容，BIND 9将“primary”和“master”视为同义词，“secondary”和“slave”也是如此。<sup>[10](https://bind9.readthedocs.io/en/v9.18.4/chapter3.html)</sup>

**递归与缓存服务。** 操作系统的解析器库是存根解析器，自身无法完成完整解析，因此依赖递归（缓存）[名称服务器](https://www.edgepedia.org/zh/name-server)。BIND按照每条记录的生存时间（TTL）缓存查询结果，并可将无法回答的查询转发给配置的转发器，选择转发器时依据实测响应时间而非列表顺序。<sup>[4](https://bind9.readthedocs.io/en/v9.18.3/introduction.html)</sup> 一个 `named` 进程可以同时承担多个角色，不过ISC建议将权威服务和递归服务分置于不同机器，因为纯权威服务器可以禁用递归运行，而纯缓存服务器可以置于防火墙之内。<sup>[4](https://bind9.readthedocs.io/en/v9.18.3/introduction.html)</sup>

**配置与工具。** 服务器行为在 `named.conf` 中定义，通常位于 `/etc` 或 `/usr/local/etc/namedb`，支持数百条语句，按全局、视图和区域作用域组织为层级块。`rndc` 远程名称守护进程控制程序用于管理运行中的服务器，`dig` 则是BIND自带的标准DNS查询工具。<sup>[11](https://bind9.readthedocs.io/en/v9.21.10/reference.html)</sup><sup> • </sup><sup>[12](https://bind9.readthedocs.io/en/v9.20.23/manpages.html)</sup>

## DNSSEC与安全

BIND 9是首个从初始版本就支持DNSSEC的主流DNS实现。DNS安全扩展为DNS数据添加数字签名，使每个响应的完整性和真实性都能得到验证；DNSSEC并不加密DNS数据，而是对其签名。较新的BIND 9版本默认启用DNSSEC验证，验证型解析器会拒绝来自签名区域但验证失败的回答，向客户端返回SERVFAIL。<sup>[13](https://bind9.readthedocs.io/en/stable/dnssec-guide.html)</sup><sup> • </sup><sup>[14](https://bind9.readthedocs.io/en/stable/chapter5.html)</sup>

**抗滥用特性。** 数十年来针对DNS的滥用催生了BIND中一长串防护特性，包括响应速率限制、每服务器取数限制、用于过滤的响应策略区（RPZ）、DNS Cookie、拒绝ANY查询、预取以及访问控制列表。<sup>[6](https://www.isc.org/blogs/dns-complexity-survey-2020/)</sup> ISC的披露政策规定，所有在CVSS量表上得分高于7.0的问题都会分配CVE编号，并向付费订阅者在发布前五天提供漏洞预警。<sup>[15](https://www.isc.org/blogs/2026-05-12-bind-security-updates/)</sup><sup> • </sup><sup>[7](https://www.isc.org/bind/index.html)</sup>

**已记录的攻击。** 研究界对BIND及其同类软件进行了探查。清华大学NISL实验室的李翔（Xiang Li）描述的DNSBomb攻击（CVE-2024-33655）已负责任地披露给多家DNS厂商，ISC对其进行了研究，找到了几种限制其对BIND 9解析器影响的方法。<sup>[16](https://www.isc.org/blogs/2024-dnsbomb/)</sup> 2024年USENIX WOOT对滥用DNSSEC不存在性证明记录的NSEC3封闭攻击的研究发现，即使是在遵循RFC 5155迭代限制的解析器上，CPU指令数也增加了72倍；在该研究的对比中，BIND 9.18.12在使用255字节盐值时，每秒80个恶意查询即达到CPU满载，是所测试解析器中最早达到的。<sup>[17](https://www.usenix.org/conference/woot24/presentation/gruza)</sup><sup> • </sup><sup>[18](https://www.usenix.org/system/files/woot24-proceedings-interior.pdf)</sup>

**发布节奏。** 2026年5月，ISC宣布大语言模型使漏洞报告率升至历史水平的十倍以上，用户在2026年剩余时间内应预期每个月度维护版本都包含安全修复；2026年9月发布的9.20.29和9.21.26修复了十余个CVE。<sup>[15](https://www.isc.org/blogs/2026-05-12-bind-security-updates/)</sup><sup> • </sup><sup>[19](https://lists.isc.org/pipermail/bind-announce/2026-September/001303.html)</sup>

## 现代化与性能

BIND 9的架构可追溯至1998年，当时顶级服务器可能配有四个500 MHz的CPU、4 GB内存和100 Mbps网络接口；到2023年，同样的花费可以买到256线程、2 GHz主频、数TB内存和10至100 Gbps网络。自2017年起，ISC选择逐块重建而非重写软件：BIND 9.16用libuv库替换了旧网络栈的一半，BIND 9.18将所有网络功能迁移到libuv并淘汰了旧的ISC套接字处理程序，BIND 9.20开始用新的数据结构替换每次访问加锁的红黑树缓存数据库。<sup>[20](https://www.isc.org/blogs/bind-architecture-25-years/)</sup><sup> • </sup><sup>[21](https://kb.isc.org/docs/changes-to-be-aware-of-when-moving-from-bind-916-to-918)</sup>

这些变化是可以量化的。在ISC 2023年回放一家欧洲电信运营商真实查询流的基准测试中，BIND 9.18.19的内存占用约为9.16.44的一半，CPU消耗更低，过载应对也更好，在15倍负载系数下超时查询约减少3%；内存节省主要来自移除了9.16仍保留的重复网络代码。<sup>[22](https://www.isc.org/blogs/bind-resolver-performance-november-2023/)</sup> 基本服务对硬件要求仍然不高，但DNSSEC签名和验证是CPU密集型操作，`max-cache-size` 选项则用缓存命中率换取内存节省。<sup>[8](https://bind9.readthedocs.io/en/stable/chapter2.html)</sup>

## 替代方案

BIND并非唯一的开源DNS服务器。NLnet Labs的Unbound是一款验证型递归缓存解析器，设计目标是快速精简，不提供权威区域服务。PowerDNS将两种角色拆分为独立产品：权威服务器和递归器，可与dnsdist负载均衡器混合使用。CZ.NIC开发的Knot和Knot Resolver最初为.cz顶级域名而设。管理员通常将BIND、NSD或PowerDNS Authoritative等纯权威服务器与Unbound或Knot Resolver等独立解析器搭配使用。<sup>[23](https://unbound.docs.nlnetlabs.nl/)</sup><sup> • </sup><sup>[24](https://doc.powerdns.com/index.html)</sup>

## References

1. [The History of BIND, ISC](https://www.isc.org/bindhistory/)
2. [What is DNS?, ITPro](https://www.itpro.com/domain-name-system-dns/30228/what-is-dns)
3. [A Brief History of the DNS and BIND, BIND 9 documentation](https://bind9.readthedocs.io/en/v9.18.14/history.html)
4. [Introduction, BIND 9 Administrator Reference Manual](https://bind9.readthedocs.io/en/v9.18.3/introduction.html)
5. [BIND 9 Significant Features Matrix, ISC Knowledgebase](https://kb.isc.org/docs/aa-01310)
6. [Reducing the Complexity of the DNS, ISC](https://www.isc.org/blogs/dns-complexity-survey-2020/)
7. [BIND 9, ISC](https://www.isc.org/bind/index.html)
8. [Resource Requirements, BIND 9 Administrator Reference Manual](https://bind9.readthedocs.io/en/stable/chapter2.html)
9. [Announcing the release of BIND 9.0.0, bind-announce mailing list](https://lists.isc.org/pipermail/bind-announce/2000-September/000030.html)
10. [Configurations and Zone Files, BIND 9 documentation](https://bind9.readthedocs.io/en/v9.18.4/chapter3.html)
11. [Configuration Reference, BIND 9 documentation](https://bind9.readthedocs.io/en/v9.21.10/reference.html)
12. [Manual Pages, BIND 9 documentation](https://bind9.readthedocs.io/en/v9.20.23/manpages.html)
13. [DNSSEC Guide, BIND 9 documentation](https://bind9.readthedocs.io/en/stable/dnssec-guide.html)
14. [DNSSEC, BIND 9 documentation](https://bind9.readthedocs.io/en/stable/chapter5.html)
15. [Prepare for more frequent BIND security updates, ISC](https://www.isc.org/blogs/2026-05-12-bind-security-updates/)
16. [Rate Limits in BIND 9 Effective vs. DNSBomb Vulnerability, ISC](https://www.isc.org/blogs/2024-dnsbomb/)
17. [Attacking with Something That Does Not Exist: 'Proof of Non-Existence' Can Exhaust DNS Resolver CPU, USENIX WOOT 2024](https://www.usenix.org/conference/woot24/presentation/gruza)
18. [WOOT '24 proceedings, USENIX](https://www.usenix.org/system/files/woot24-proceedings-interior.pdf)
19. [New BIND 9 releases: 9.20.29, 9.21.26, bind-announce mailing list](https://lists.isc.org/pipermail/bind-announce/2026-September/001303.html)
20. [25 years of BIND 9 architecture, ISC](https://www.isc.org/blogs/bind-architecture-25-years/)
21. [BIND 9.18 Significant Changes, ISC Knowledgebase](https://kb.isc.org/docs/changes-to-be-aware-of-when-moving-from-bind-916-to-918)
22. [Comparative Resolver Performance Results of BIND Versions, ISC](https://www.isc.org/blogs/bind-resolver-performance-november-2023/)
23. [Unbound documentation, NLnet Labs](https://unbound.docs.nlnetlabs.nl/)
24. [PowerDNS Documentation](https://doc.powerdns.com/index.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Internet protocol suite

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/bind

English original: https://www.edgepedia.org/bind
