Publish local BIND9 zones from the panel

This commit is contained in:
parkel committed 2026-11-21 01:41:06 +01:00
1 parent 6e075c25f4
commit 70cb4de81b
14 files changed
+450 -19

No files matched your search

+31
View File
@@ -242,3 +242,34 @@ database requests and the **Can add database provisioning** permission.
The MariaDB node stores the application login in the root-only file
`/var/lib/coulobre/database-node/<database-name>.json`. Use the credentials
from that file when configuring the hosted application.
## Publish local DNS zones from the panel
Enable the [DNS publishing socket](development.md#enable-local-dns-publishing)
on the panel host. Install the BIND9 publishing worker under a dedicated
identity with access to that socket.
```sh
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-dns-publisher
sudo install -m 0644 deploy/systemd/coulobre-dns-publisher.service /etc/systemd/system/
sudo systemctl daemon-reload
```
Set `COULOBRE_LOCAL_DNS_PUBLISHING=1` in `/etc/coulobre/panel.env`, then apply
pending migrations and restart the panel services.
```sh
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-dns-publisher.service
```
Open a hosting account and select **Publish zone**. Reload the account page to
see progress and the last SOA serial confirmed by the local BIND9 node.
Operators need permission to view hosting accounts and DNS zones and the
**Can add DNS publication** permission.
Each request captures the reviewed SOA serial and records. You can edit the
zone while it publishes. Publish the newer revision after the current request
finishes. Use **Retry publishing** if the current revision failed.