BIND 9 is the oldest, most widely deployed and most complete DNS server there is. This guide builds a production-grade, authoritative DNS pair on Debian 13 “Trixie” (BIND 9.20): automatic DNSSEC signing, TSIG-secured zone transfers, response rate limiting, locked-down dynamic zones for Let’s Encrypt DNS-01 and DKIM, sane logging, and a full test and troubleshooting section.
What you’ll build

All names and addresses are documentation values (example.org, RFC 5737 / RFC 3849 ranges). Replace them with your own:
| Placeholder | Meaning |
|---|---|
example.org | Your public zone |
198.51.100.10 / 2001:db8:10::10 | ns1 public IPv4 / IPv6 |
10.0.0.10 | ns1 internal IPv4 |
203.0.113.20 / 2001:db8:20::20 | ns2 public IPv4 / IPv6 |
10.0.0.5 | Hidden primary (only for Option B) |
web1, web2 | Hosts that request Let’s Encrypt certificates via DNS-01 |
Step 1: Prepare the host
DNSSEC signatures and TSIG both depend on correct time. A clock more than 5 minutes off breaks zone transfers (BADTIME) and can make your signatures look expired, so install a time daemon first.
# hostnamectl set-hostname ns1
# apt update && apt full-upgrade
# apt install chrony
# timedatectl # "System clock synchronized: yes"Code language: PHP (php)
Step 2: Install BIND 9.20
# apt install bind9 bind9-utils bind9-dnsutils dns-root-data
# named -V | head -1
# systemctl status namedCode language: PHP (php)
Since Debian 12 the systemd unit is named.service (bind9 is only an alias) and its defaults file is /etc/default/named, not /etc/default/bind9. The default contents are already correct:
# /etc/default/named
# run resolvconf?
RESOLVCONF=no
# startup options for the server (add -4 if the host has no IPv6)
OPTIONS="-u bind"Code language: PHP (php)
Create the directories BIND will write to. Debian’s AppArmor profile for named already allows writes to /var/lib/bind, /var/cache/bind and /var/log/named. Put files anywhere else and you’ll get permission denied errors even with correct ownership.
# install -d -o bind -g bind -m 0750 /var/log/named
# install -d -o bind -g bind -m 0750 /var/lib/bind/keys /var/lib/bind/acme /var/lib/bind/dkim
# install -d -o root -g bind -m 0750 /etc/bind/keys.dCode language: PHP (php)
| Path | Contents |
|---|---|
/etc/bind/named.conf | Entry point: only includes, controls, statistics |
/etc/bind/named.conf.options | Global options, ACLs, DNSSEC policy |
/etc/bind/named.conf.log | Logging |
/etc/bind/named.conf.local | Your zones |
/etc/bind/named.conf.acme / .dkim | Dynamic zones |
/etc/bind/keys.d/ | TSIG keys (root:bind, 0640) |
/var/lib/bind/ | Primary zone files, journals, DNSSEC keys (persistent) |
/var/cache/bind/ | Secondary zone copies (re-fetchable) |
/var/log/named/ | Log files |
Step 3: Generate keys
rndc control key
Debian creates /etc/bind/rndc.key on install. Older installs may still have an hmac-md5 key, so regenerate it with SHA-256. rndc reads this file automatically, so you don’t need an rndc.conf. If an old /etc/bind/rndc.conf exists, delete it, because it overrides the key file.
# rndc-confgen -a -A hmac-sha256 -k rndc-key -c /etc/bind/rndc.key
# chown root:bind /etc/bind/rndc.key
# chmod 0640 /etc/bind/rndc.keyCode language: PHP (php)
Zone transfer key (ns1 ↔ ns2)
dnssec-keygen no longer creates HMAC keys (removed in BIND 9.13). Use tsig-keygen, which writes a ready-to-include key block:
# tsig-keygen -a hmac-sha256 xfr-ns1-ns2 > /etc/bind/keys.d/xfr.key
# cat /etc/bind/keys.d/xfr.key
key "xfr-ns1-ns2" {
algorithm hmac-sha256;
secret "…base64…";
};Code language: PHP (php)
ACME keys (one per client host)
# for k in acme-ns1 acme-web1 acme-web2; do
tsig-keygen -a hmac-sha512 "$k" > "/etc/bind/keys.d/$k.key"
done
# chown root:bind /etc/bind/keys.d/*.key
# chmod 0640 /etc/bind/keys.d/*.keyCode language: PHP (php)
Rule of thumb: one key per relationship and per client. If web2 is compromised you revoke only acme-web2, and that key could only ever write a single TXT record anyway.
Step 4: named.conf
// /etc/bind/named.conf (ns1)
// See /usr/share/doc/bind9/README.Debian before changing the structure.
include "/etc/bind/rndc.key";
include "/etc/bind/keys.d/xfr.key";
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.log";
include "/etc/bind/named.conf.default-zones"; // root hints + RFC 6303 local zones
include "/etc/bind/named.conf.local";
// rndc only from localhost
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};
// Statistics (XML/JSON) only from localhost
statistics-channels {
inet 127.0.0.1 port 8053 allow { 127.0.0.1; };
};Code language: PHP (php)
Step 5: named.conf.options
The principle: authoritative answers for everyone, recursion for nobody but this host. A public-facing server that recurses for a whole /16 is an open resolver waiting for a misconfigured firewall.
// /etc/bind/named.conf.options (ns1)
// Clients exempt from response rate limiting
acl "rrl-exempt" {
localhost;
10.0.0.0/8; // internal
203.0.113.20; // ns2
2001:db8:20::20;
};
options {
directory "/var/cache/bind";
// Listen on explicit addresses only
listen-on { 127.0.0.1; 10.0.0.10; 198.51.100.10; };
listen-on-v6 { ::1; 2001:db8:10::10; };
// Don't reveal version, hostname or server id
version none;
hostname none;
server-id none;
// Authoritative for the world, recursive for this host only
allow-query { any; };
recursion yes;
allow-recursion { localhost; };
allow-query-cache { localhost; };
dnssec-validation auto; // built-in root trust anchor, RFC 5011 rollover
// Deny by default, zones opt in
allow-transfer { none; };
allow-update { none; };
notify explicit; // notify only also-notify targets
minimal-responses yes;
statistics-file "/var/log/named/named.stats";
zone-statistics yes;
// BIND default is 150; lower it on small VMs if you like
tcp-clients 100;
// Response rate limiting against reflection/amplification
rate-limit {
ipv4-prefix-length 32;
ipv6-prefix-length 56;
window 10;
responses-per-second 25;
errors-per-second 5;
nxdomains-per-second 5;
slip 2;
exempt-clients { rrl-exempt; };
};
};
// DNSSEC signing policy
dnssec-policy "ecdsa-nsec3" {
keys {
ksk lifetime unlimited algorithm ecdsap256sha256; // no KSK roll: DS at the registrar stays valid
zsk lifetime 90d algorithm ecdsap256sha256; // rolls automatically, no DS change
};
nsec3param iterations 0 optout no salt-length 0; // RFC 9276
};Code language: JavaScript (javascript)
Tip: if you don’t need NSEC3 or a split KSK/ZSK, dnssec-policy default; (one ECDSA P-256 CSK, NSEC) is a perfectly good built-in choice.
Step 6: Logging
Every channel rotates itself (versions plus size), so you don’t need logrotate. Splitting by category means Fail2Ban only ever parses security events.
// /etc/bind/named.conf.log
logging {
// Zone transfers and NOTIFY (in/out)
channel transfers {
file "/var/log/named/transfers.log" versions 3 size 10m;
severity info;
print-time yes;
};
// Dynamic updates (ACME, DKIM)
channel updates {
file "/var/log/named/updates.log" versions 3 size 1m;
severity info;
print-severity yes;
print-time yes;
};
// Refused queries/transfers/updates, read by Fail2Ban / CrowdSec
channel security_file {
file "/var/log/named/security.log" versions 3 size 5m;
severity dynamic;
print-time yes;
};
// Response rate limiting drops and slips
channel rate_limit {
file "/var/log/named/rate-limit.log" versions 3 size 5m;
severity info;
print-time yes;
};
// DNSSEC signing and key events
channel dnssec_log {
file "/var/log/named/dnssec.log" versions 3 size 5m;
severity info;
print-time yes;
};
// Everything else
channel bind_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
// Copy of transfer events to syslog/journal
channel slog {
syslog daemon;
severity info;
};
category xfer-in { transfers; slog; };
category xfer-out { transfers; slog; };
category notify { transfers; slog; };
category update { updates; };
category update-security { updates; security_file; };
category security { security_file; };
category rate-limit { rate_limit; };
category dnssec { dnssec_log; };
category lame-servers { null; };
category default { bind_log; };
};Code language: PHP (php)
Step 7: The zone on ns1
Choose Option A if you edit zone files on ns1 itself (most setups). Choose Option B if another system, such as Active Directory DNS, owns the records and ns1 only signs and publishes them.
Option A: ns1 is the primary
// /etc/bind/named.conf.local (ns1, Option A)
zone "example.org" {
type primary;
file "/var/lib/bind/example.org.db";
// DNSSEC: edit the unsigned file, BIND keeps a signed copy alongside
dnssec-policy "ecdsa-nsec3";
inline-signing yes;
key-directory "/var/lib/bind/keys";
// Push to ns2, TSIG-protected transfers
also-notify { 203.0.113.20; 2001:db8:20::20; };
notify-source 198.51.100.10;
notify-source-v6 2001:db8:10::10;
allow-transfer { localhost; key "xfr-ns1-ns2"; };
};
include "/etc/bind/named.conf.acme";
include "/etc/bind/named.conf.dkim";Code language: PHP (php)
; /var/lib/bind/example.org.db
$TTL 3600
@ IN SOA ns1.example.org. hostmaster.example.org. (
2026112201 ; serial (YYYYMMDDnn), bump on every edit
3600 ; refresh
900 ; retry
1209600 ; expire
300 ) ; negative-caching TTL
IN NS ns1.example.org.
IN NS ns2.example.org.
IN A 198.51.100.80
IN AAAA 2001:db8:10::80
IN MX 10 mail.example.org.
IN TXT "v=spf1 mx -all"
IN CAA 0 issue "letsencrypt.org; validationmethods=dns-01"
IN CAA 0 iodef "mailto:hostmaster@example.org"
ns1 IN A 198.51.100.10
ns1 IN AAAA 2001:db8:10::10
ns2 IN A 203.0.113.20
ns2 IN AAAA 2001:db8:20::20
mail IN A 198.51.100.25
www IN CNAME example.org.
_dmarc IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.org"
; Delegations to the dynamic sub-zones (Steps 9 and 10)
_acme-challenge IN NS ns1.example.org.
_acme-challenge.ns1 IN NS ns1.example.org.
_domainkey IN NS ns1.example.org.
_domainkey IN NS ns2.example.org.Code language: PHP (php)
# chown bind:bind /var/lib/bind/example.org.db
# named-checkzone example.org /var/lib/bind/example.org.dbCode language: PHP (php)
Option B: hidden primary (e.g. Active Directory)
AD stays the single source of truth on the inside. ns1 pulls the zone, signs it and serves it to the world. The DCs are never exposed.
// /etc/bind/named.conf.local (ns1, Option B)
zone "example.org" {
type secondary;
file "/var/cache/bind/example.org.db";
// Pull from ONE DC only: AD-integrated zones keep a separate serial per DC
primaries { 10.0.0.5; };
transfer-source 10.0.0.10;
allow-notify { 10.0.0.5; };
request-ixfr no; // Windows DNS IXFR is unreliable, always AXFR
// DNSSEC: sign what we receive
dnssec-policy "ecdsa-nsec3";
inline-signing yes;
key-directory "/var/lib/bind/keys";
// Push the signed zone to ns2
also-notify { 203.0.113.20; 2001:db8:20::20; };
notify-source 198.51.100.10;
notify-source-v6 2001:db8:10::10;
allow-transfer { localhost; key "xfr-ns1-ns2"; };
};
include "/etc/bind/named.conf.acme";
include "/etc/bind/named.conf.dkim";Code language: PHP (php)
On the Windows DNS side: Zone Properties → Zone Transfers → Only to the following servers → 10.0.0.10, and add the same address under Notify. Create the _acme-challenge and _domainkey delegations in AD as New Delegation pointing to ns1 (and ns2 for _domainkey).
Step 8: The secondary (ns2)
Install the same packages and follow Steps 1–2 and 6. Copy /etc/bind/keys.d/xfr.key over securely (e.g. scp), set the same ownership (root:bind, 0640), then use these files. ns2 is purely authoritative: no recursion at all.
// /etc/bind/named.conf (ns2)
include "/etc/bind/rndc.key";
include "/etc/bind/keys.d/xfr.key";
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.log";
include "/etc/bind/named.conf.local";
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; };
};Code language: PHP (php)
// /etc/bind/named.conf.options (ns2)
acl "rrl-exempt" { localhost; 198.51.100.10; 2001:db8:10::10; };
options {
directory "/var/cache/bind";
listen-on { 127.0.0.1; 203.0.113.20; };
listen-on-v6 { ::1; 2001:db8:20::20; };
version none;
hostname none;
server-id none;
allow-query { any; };
recursion no;
allow-transfer { none; };
allow-update { none; };
notify no;
minimal-responses yes;
rate-limit {
ipv4-prefix-length 32;
ipv6-prefix-length 56;
window 10;
responses-per-second 25;
errors-per-second 5;
nxdomains-per-second 5;
slip 2;
exempt-clients { rrl-exempt; };
};
};Code language: JavaScript (javascript)
// /etc/bind/named.conf.local (ns2)
zone "example.org" {
type secondary;
file "/var/cache/bind/example.org.db";
primaries { 198.51.100.10 key "xfr-ns1-ns2"; 2001:db8:10::10 key "xfr-ns1-ns2"; };
allow-notify { 198.51.100.10; 2001:db8:10::10; };
};
// DKIM survives ns1 maintenance
zone "_domainkey.example.org" {
type secondary;
file "/var/cache/bind/_domainkey.example.org.db";
primaries { 198.51.100.10 key "xfr-ns1-ns2"; 2001:db8:10::10 key "xfr-ns1-ns2"; };
allow-notify { 198.51.100.10; 2001:db8:10::10; };
};Code language: JavaScript (javascript)
ns2 receives the already signed zone. It needs no DNSSEC keys and no policy.
Step 9: Let’s Encrypt DNS-01 challenge zones
Never give an ACME client update rights on your real zone. Delegate _acme-challenge.<name> to a tiny dynamic zone instead, and grant each key the right to change one TXT record and nothing else. This works even when the parent zone lives in AD (Option B).

// /etc/bind/named.conf.acme (ns1)
// acme-web1 / acme-web2 : wildcard + apex cert for example.org (web servers)
// acme-ns1 : certificate for ns1.example.org (certbot on ns1)
include "/etc/bind/keys.d/acme-ns1.key";
include "/etc/bind/keys.d/acme-web1.key";
include "/etc/bind/keys.d/acme-web2.key";
zone "_acme-challenge.example.org" {
type primary;
file "/var/lib/bind/acme/_acme-challenge.example.org.db";
update-policy {
grant acme-web1 name _acme-challenge.example.org. TXT;
grant acme-web2 name _acme-challenge.example.org. TXT;
};
notify no;
};
zone "_acme-challenge.ns1.example.org" {
type primary;
file "/var/lib/bind/acme/_acme-challenge.ns1.example.org.db";
update-policy { grant acme-ns1 name _acme-challenge.ns1.example.org. TXT; };
notify no;
};Code language: PHP (php)
Seed each challenge zone with a minimal SOA and NS. A low TTL keeps stale challenge records from being cached:
# for z in _acme-challenge.example.org _acme-challenge.ns1.example.org; do
cat > "/var/lib/bind/acme/$z.db" <<EOF
\$TTL 60
@ IN SOA ns1.example.org. hostmaster.example.org. ( 1 3600 600 86400 60 )
IN NS ns1.example.org.
EOF
done
# chown -R bind:bind /var/lib/bind/acmeCode language: PHP (php)
On the client (web1)
# apt install certbot python3-certbot-dns-rfc2136
# install -m 0600 /dev/null /etc/letsencrypt/rfc2136.ini
# cat > /etc/letsencrypt/rfc2136.ini <<'EOF'
dns_rfc2136_server = 198.51.100.10
dns_rfc2136_port = 53
dns_rfc2136_name = acme-web1
dns_rfc2136_secret = …secret from /etc/bind/keys.d/acme-web1.key…
dns_rfc2136_algorithm = HMAC-SHA512
dns_rfc2136_sign_query = false
EOF
# certbot certonly --dns-rfc2136 \
--dns-rfc2136-credentials /etc/letsencrypt/rfc2136.ini \
--dns-rfc2136-propagation-seconds 15 \
-d example.org -d '*.example.org'Code language: PHP (php)
To test the key by hand without certbot, copy the key file to web1 and run:
$ nsupdate -k acme-web1.key <<'EOF'
server 198.51.100.10
zone _acme-challenge.example.org
update add _acme-challenge.example.org 60 TXT "hello"
send
update delete _acme-challenge.example.org TXT "hello"
send
EOFCode language: JavaScript (javascript)
Try adding an A record or a different name with the same key. It must fail with REFUSED. That’s the policy doing its job.
Step 10: DKIM selector zone
Delegating _domainkey lets a rotation script on ns1 publish new DKIM keys without touching the main zone. update-policy local creates a session key (/run/named/session.key) that only works through nsupdate -l on the server itself, so no shared secret is needed.
// /etc/bind/named.conf.dkim (ns1)
zone "_domainkey.example.org" {
type primary;
file "/var/lib/bind/dkim/_domainkey.example.org.db";
update-policy local;
also-notify { 203.0.113.20; 2001:db8:20::20; };
notify-source 198.51.100.10;
notify-source-v6 2001:db8:10::10;
allow-transfer { localhost; key "xfr-ns1-ns2"; };
};Code language: JavaScript (javascript)
# cat > /var/lib/bind/dkim/_domainkey.example.org.db <<'EOF'
$TTL 3600
@ IN SOA ns1.example.org. hostmaster.example.org. ( 1 3600 900 1209600 300 )
IN NS ns1.example.org.
IN NS ns2.example.org.
EOF
# chown bind:bind /var/lib/bind/dkim/_domainkey.example.org.db
# Publish a selector (long keys: split into several quoted strings of ≤255 chars)
# nsupdate -l <<'EOF'
zone _domainkey.example.org
update delete 2026b._domainkey.example.org TXT
update add 2026b._domainkey.example.org 3600 TXT "v=DKIM1; k=rsa; " "p=MIIBIjANBgkq…"
send
EOFCode language: PHP (php)
Step 11: Validate and start
# named-checkconf -z # parses config AND loads every zone
# systemctl restart named
# systemctl status named --no-pager
# journalctl -u named -b --no-pager | tail -50
# rndc status
# rndc zonestatus example.orgCode language: PHP (php)
Always run named-checkconf -z before every reload. A typo in an included file otherwise takes down every zone at restart.
Step 12: Publish DNSSEC (DS at the registrar)

# rndc dnssec -status example.org
# DS record(s) to give to your registrar (KSK only, SHA-256)
# dig @127.0.0.1 example.org DNSKEY | dnssec-dsfromkey -2 -f - example.org
# BIND also publishes CDS/CDNSKEY for registries that support automation
# dig @127.0.0.1 example.org CDS +shortCode language: PHP (php)
After the registrar shows the DS and it appears under the TLD (dig example.org DS @a0.org.afilias-nst.info or similar), tell BIND so the key state machine can advance:
# rndc dnssec -checkds -key <KSK-keytag> published example.org
# delv @127.0.0.1 example.org SOA # expect "; fully validated"Code language: CSS (css)
Then check the whole chain visually on DNSViz. Back up /var/lib/bind/keys/: losing the KSK means an emergency DS swap at the registrar.
Step 13: Prove it works
Run these from a machine outside your network:
# Both servers answer authoritatively ("aa" flag) with the same serial
dig @198.51.100.10 example.org SOA +norec
dig @203.0.113.20 example.org SOA +norec
# Signatures present
dig @203.0.113.20 example.org A +dnssec +norec
# Not an open resolver: must be REFUSED
dig @198.51.100.10 debian.org A
dig @203.0.113.20 debian.org A
# Zone transfer without key: must fail ("Transfer failed.")
dig @198.51.100.10 example.org AXFR
dig @203.0.113.20 example.org AXFR
# No version disclosure
dig @198.51.100.10 version.bind CH TXT
# TCP works (needed for DNSSEC-sized answers and transfers)
dig @198.51.100.10 example.org DNSKEY +tcpCode language: PHP (php)
And on ns2, check that the TSIG transfer works:
# dig -k /etc/bind/keys.d/xfr.key @198.51.100.10 example.org AXFR | tail -3
# grep example.org /var/log/named/transfers.log | tailCode language: PHP (php)
Step 14: Firewall and Fail2Ban
Open 53/udp and 53/tcp to the world. Keep 953 (rndc) and 8053 (statistics) on loopback, which the config already enforces. Minimal nftables example (adjust the SSH rule before enabling it, or you’ll lock yourself out):
# /etc/nftables.conf
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state established,related accept
iif lo accept
meta l4proto { icmp, ipv6-icmp } accept
tcp dport 22 ip saddr 10.0.0.0/8 accept
meta l4proto { udp, tcp } th dport 53 accept
}
}
# nft -c -f /etc/nftables.conf && systemctl enable --now nftablesCode language: PHP (php)
# /etc/fail2ban/jail.d/named.local
[named-refused]
enabled = true
backend = auto
logpath = /var/log/named/security.log
maxretry = 10
findtime = 10m
bantime = 1hCode language: PHP (php)
Daily operations cheat sheet
| Command | When |
|---|---|
named-checkconf -z | Before every reload/restart |
rndc reload example.org | After editing a static zone file (bump the serial!) |
rndc freeze <zone> … edit … rndc thaw <zone> | Hand-editing a dynamic zone (ACME/DKIM). Never edit it while it’s live. |
rndc sync -clean <zone> | Flush the journal into the zone file |
rndc notify example.org | Re-send NOTIFY to ns2 |
rndc retransfer example.org | On ns2: force a full re-fetch |
rndc dnssec -status example.org | Key states, next rollover |
rndc signing -list example.org | Signing progress |
rndc querylog on|off | Temporary query logging for debugging |
rndc stats | Dump counters to named.stats |
curl -s http://127.0.0.1:8053/json/v1/server | Live statistics (JSON) for monitoring |
named-journalprint <file>.jnl | Read what dynamic updates changed |
Troubleshooting
| Symptom | Cause / fix |
|---|---|
permission denied writing .jnl, keys or logs | File not owned by bind, or outside the AppArmor-allowed paths. Check journalctl -k | grep -i apparmor. |
ns2: Transfer status: REFUSED or tsig verify failure | Key name, algorithm or secret differ between the two servers. Diff the key files. |
BADTIME / clocks are unsynchronized | Clock drift. Fix chrony on both hosts. |
refused notify from non-primary | notify-source on ns1 doesn’t match allow-notify on ns2. |
| ns2 serial stays behind | NOTIFY blocked, or TCP/53 blocked between the servers (transfers use TCP). |
Validating resolvers return SERVFAIL after DS upload | DS doesn’t match the active KSK. Compare with dnssec-dsfromkey and check DNSViz. |
certbot: REFUSED / NOTAUTH | Wrong key, or update-policy name/type mismatch. See updates.log. |
journal out of sync with zone | The dynamic zone was edited by hand without rndc freeze/thaw. |
Option B: serial went backwards | Multiple AD DCs used as primaries. Use exactly one. |
| Large answers time out | Something drops fragmented UDP or TCP/53. Allow TCP/53 everywhere. |
Hardening checklist
- Recursion only for
localhoston ns1, completely off on ns2 allow-transfer { none; }globally; zones opt in with a TSIG keyallow-update { none; }globally; dynamic zones use narrowupdate-policygrants- One TSIG key per relationship and per client, HMAC-SHA256/512, never MD5
- Key files
root:bind 0640; never paste them into tickets, chats or blog posts version,hostname,server-idall set tonone- RRL enabled on every public listener
- rndc and statistics bound to
127.0.0.1 - CAA records restrict issuance to your CA and to
dns-01 - DNSSEC keys backed up; DS verified with DNSViz
- Time synchronized; unattended security upgrades enabled (
apt install unattended-upgrades)
What changed since older BIND guides
| Old | Debian 13 / BIND 9.20 |
|---|---|
type master / type slave / masters | type primary / type secondary / primaries |
dnssec-keygen -a HMAC-SHA512 -r /dev/urandom | tsig-keygen -a hmac-sha512 name |
auto-dnssec maintain, manual key generation | dnssec-policy (auto-dnssec is removed in 9.20) |
hmac-md5 rndc key | rndc-confgen -a -A hmac-sha256 |
/etc/default/bind9, bind9.service | /etc/default/named, named.service |
auth-nxdomain no;, pid-file | Defaults already correct; drop them |
| Recursion for whole LANs on the public server | Authoritative and recursive roles split |
Keys and dynamic zones in /var/cache/bind | /var/lib/bind (persistent data, not cache) |