Support MX and TXT records in BIND9 deployment manifests

This commit is contained in:
parkel committed 2026-11-19 23:48:02 +01:00
1 parent 90405f696f
commit 1c403debd8
3 files changed
+268 -20

No files matched your search

+29
View File
@@ -155,6 +155,35 @@ coulobre-dns-node render coulobre-zone.json > db.example.net
named-checkzone example.net db.example.net
```
### Include mail records in a manifest
Version 2 adds the `mx_records` and `txt_records` arrays. In a version 1
manifest, update the version to `2` and add both arrays. Use an empty array
when you only need one record type. Version 1 manifests still work with
the updated node command.
```json
{
"version": 2,
"mx_records": [
{"name": "example.net", "priority": 10, "exchange": "mx.provider.example"}
],
"txt_records": [
{"name": "example.net", "text": "v=spf1 mx -all"},
{"name": "_dmarc.example.net", "text": "v=DMARC1; p=none"}
]
}
```
Keep the domain, serial, nameservers, mailbox and addresses from the original
manifest. Use fully qualified record names and supply an A or AAAA record for
each MX server inside the zone. Use priority `0` and exchange `.` for a null
MX record at a name that receives no mail. [RFC 7505](https://www.rfc-editor.org/rfc/rfc7505.html)
Supply TXT values as plain JSON strings. The renderer quotes the values and
splits long UTF-8 strings into DNS character strings. DKIM readers concatenate
the strings in the TXT record. [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035.html) and [RFC 6376](https://www.rfc-editor.org/rfc/rfc6376.html)
### Apply a zone manifest
Install `bind9` and `bind9-utils` on an Ubuntu DNS node. Use BIND9's default