BIND

Also known as: Berkeley Internet Name Domain

On this page 7

BIND, short for Berkeley Internet Name Domain, is the oldest and most widely deployed open-source DNS server software, able to serve as an authoritative name server, a recursive resolver or both at once. In DNS, it is the reference implementation against which many protocol features were first built and tested, and its zone file syntax became the de facto format for describing DNS data across the Internet.

BIND originated at the University of California, Berkeley in the 1980s and is maintained today by the Internet Systems Consortium (ISC). The current generation, BIND 9, is a complete rewrite released in 2000 and distributed under the Mozilla Public License 2.0. Its server process is called named, pronounced “name-dee”.

How BIND answers DNS queries

The named daemon listens on UDP and TCP port 53 and decides, for each query, whether it holds the answer itself or must find it elsewhere. If the name belongs to a zone the server is configured for, it answers authoritatively from loaded zone data. Otherwise, if recursion is allowed for that client, it walks the hierarchy from the root name servers downward and caches the result for the record’s time to live.

Configuration lives in named.conf, which declares global options, access control lists, logging, keys and one zone statement per zone. Zone contents are usually kept in text zone files in the master file format defined in RFC 1035, starting with an SOA record and NS records.

The table lists the main operating roles and the configuration that enables each.

RoleWhat it doesKey configuration
Primary authoritativeServes the original copy of a zonetype primary; with a zone file
Secondary authoritativeServes a copy fetched by zone transfertype secondary; with primaries
Recursive resolverResolves any name for permitted clientsrecursion yes; with allow-recursion
Forwarding resolverSends unanswered queries to upstream resolversforwarders and forward only;
Split-horizon serverReturns different data to different clientsview statements with match-clients
Operating roles of BIND

Key features and tools in BIND 9

BIND 9 implements nearly the full DNS protocol suite, which explains its role as a reference platform for new standards. Features that other servers offer selectively are mostly built in.

  • DNSSEC signing and validation, including fully automated key rollover through the dnssec-policy statement.
  • Zone transfers with AXFR and incremental IXFR, protected by TSIG shared-secret signatures.
  • Dynamic updates under RFC 2136, often used by DHCP servers and the nsupdate tool.
  • Response Policy Zones (RPZ) for blocking or rewriting answers, a common DNS firewall technique.
  • Catalog zones that let a primary server provision new zones on secondaries automatically.
  • Encrypted transports in recent versions: DNS over TLS and DNS over HTTPS.

The distribution also ships administrative utilities. The table groups the most frequently used ones.

UtilityPurposeTypical use
rndcRemote control of a running namedReload zones, flush cache, view status
named-checkconfValidate named.conf syntaxRun before every restart
named-checkzoneValidate a zone fileCatch missing dots and bad SOA values
digQuery any DNS serverTroubleshoot answers, flags and TTL
nsupdateSend dynamic updatesAdd or remove records without editing files
Utilities distributed with BIND

BIND compared with other DNS servers

BIND is general-purpose by design, while several alternatives specialize in one role. Large operators often separate authoritative and recursive service for security and performance, and choose different software for each.

ServerRolesTypical strength
BIND 9Authoritative and recursiveFeature completeness, reference behavior
UnboundRecursive onlyLean, validating resolver with strong defaults
NSDAuthoritative onlySmall code base, high query rates
Knot DNSAuthoritative onlyPerformance and automated DNSSEC
PowerDNSSeparate authoritative and recursor productsDatabase back ends and scripting
CoreDNSPlugin-based, both rolesService discovery in Kubernetes
BIND and common alternatives

The main trade-off is that one large code base carries more attack surface than a single-role server. In exchange, BIND gives administrators one configuration language and one toolset for every DNS function.

Versions, support and security

ISC uses a numbering scheme where even minor versions are stable and odd minor versions are development branches; selected stable branches receive Extended Support Version status with a longer maintenance period. Running a supported branch matters because BIND is a frequent target of published vulnerabilities, most of them denial-of-service flaws that can crash named with crafted packets.

Sound hardening practice includes restricting recursion to trusted networks, limiting zone transfers to known secondaries with TSIG, enabling response rate limiting on authoritative servers to reduce reflection abuse, and running named as an unprivileged user. An open resolver, one that answers recursive queries from anyone, is a classic misconfiguration that turns a server into an amplification tool for attacks.

Common configuration mistakes

Most BIND outages come from small errors in zone files rather than from the software itself. The checklist below pairs typical symptoms with their causes.

SymptomCauseFix
Names appear with the zone appended twiceMissing trailing dot on a fully qualified nameEnd FQDNs with a dot
Secondaries keep old dataSOA serial not increasedRaise the serial on every edit
Zone fails to load after editSyntax error in the zone fileRun named-checkzone before reload
Validation failures for a signed zoneExpired signatures or broken DS linkUse dnssec-policy and monitor key states
Typical BIND errors and fixes

A plain-language summary

Every time someone types a web address, a computer somewhere has to translate that name into a numeric address. BIND is one of the most common programs that does this translation. Some BIND servers hold the official list of addresses for a domain, like a company keeping its own phone directory.

Other BIND servers look up names on behalf of users, like a helpful receptionist who calls around until finding the right number and then remembers it for a while. It is free software that has run much of the Internet’s naming for decades.

An example from practice

A regional university runs its own DNS for about two hundred internal and public zones. It deploys two BIND 9 servers as authoritative primaries for the public domain and a separate pair of BIND resolvers for the campus network, so that a problem in one role cannot take down the other.

Public zones are signed with dnssec-policy, which rolls the zone signing keys automatically, and changes reach four secondaries through TSIG-protected incremental transfers within seconds of each reload. The resolvers use a view to answer staff with internal addresses for the student information system while outside users receive the public ones. Recursion is limited to campus address ranges. When a later audit scans the servers, it finds no open resolver and no unauthorized zone transfer, and administrators handle routine record changes with nsupdate instead of editing files by hand.