Render BIND9 zones from DNS deployment manifests

This commit is contained in:
parkel committed 2026-11-19 23:06:25 +01:00
1 parent 5cd2614758
commit 74b7dcedbe
4 files changed
+293

No files matched your search

+34
View File
@@ -108,6 +108,40 @@ message when the installation needs attention.
Exit code `1` indicates an invalid manifest or an unavailable check, for example
when the MariaDB administrative connection fails.
## Render a BIND9 zone
Save a manifest such as the following as `coulobre-zone.json`.
```json
{
"version": 1,
"kind": "bind9_zone",
"domain": "example.net",
"serial": 1,
"nameservers": ["ns1.example.net", "ns2.provider.example"],
"responsible_name": "hostmaster.example.net",
"addresses": [
{"name": "example.net", "address": "192.0.2.20"},
{"name": "ns1.example.net", "address": "192.0.2.53"},
{"name": "www.example.net", "address": "2001:db8::20"}
]
}
```
The first nameserver is the SOA primary. Supply addresses for nameservers
inside the zone. Use fully qualified names in `addresses` and DNS mailbox
notation for `responsible_name`, such as `hostmaster.example.net` for
`hostmaster@example.net`. Increment the SOA serial when editing a zone.
Render the zone file and validate it with the `named-checkzone` utility
provided by the Ubuntu `bind9-utils` package. The rendered zone is written to
standard output. See the [BIND9 command reference](https://bind9.readthedocs.io/en/stable/manpages.html#named-checkzone).
```sh
coulobre-dns-node render coulobre-zone.json > db.example.net
named-checkzone example.net db.example.net
```
## Request an Apache configuration preview
Start RabbitMQ and set `COULOBRE_BROKER_URL` to its AMQP URL. The development