BIND 9: The Reference DNS Server

BIND 9: The Reference DNS Server

BIND is the DNS server that defined how DNS servers behave, and it is still the reference implementation.

It does both jobs

Unlike most alternatives, BIND can act as an authoritative server for zones you own and as a recursive resolver for clients, in the same daemon.

That flexibility is historically why it was everywhere, and it is now the main criticism: a single process doing both means a larger attack surface than running Unbound for recursion and PowerDNS for authority. The modern consensus is to separate the roles, and BIND will happily do either alone.

// authoritative only, which is the safer configuration
options {
    recursion no;
    allow-query { any; };
};

recursion no on an authoritative server is the single most important line. An authoritative server with recursion enabled and open to the internet is an open resolver, used for amplification attacks, and it will get your host blocked.

Zone files

Zones are text files in a format that has not meaningfully changed in decades, which is both its strength and the reason people move to database-backed alternatives.

named-checkconf
named-checkzone example.com /etc/bind/db.example.com
rndc reload
rndc dumpdb -cache

named-checkconf and named-checkzone before every reload. A syntax error in a zone file takes the zone offline, and our DNS guide covers what that means for anything resolving through it.

What BIND still does better than anything

Standards coverage. If an RFC exists, BIND probably implements it. DNSSEC, TSIG, dynamic updates, views, response policy zones, catalog zones.

Views serve different answers to different clients from one server, which is the clean way to run split-horizon DNS where internal clients see internal addresses.

RPZ, response policy zones, implement DNS filtering at the resolver, which is the same job Pi-hole does with a different mechanism.

Operational caution

BIND has a long history of CVEs, which is a function of age and surface area rather than carelessness. Keep it patched, and prefer the distribution package so you receive those fixes automatically.

Run it unprivileged in a chroot, which the distribution packages generally configure already.

License

BIND 9 is released under the Mozilla Public License 2.0.