Files
dns-updater/packaging/scripts/postinstall.sh
T
unkinben 02e3e0315d
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Initial implementation: dns-updater daemon
RFC2136 dynamic-DNS updater. Watches a records file (inotify) and new
interface addresses and pushes TSIG-signed updates to BIND per zone, sending
only the delta. Native miekg/dns (structured per-zone RCODEs), local status
API + facter fact, systemd unit, nfpm RPM, Woodpecker CI.

Replaces the puppet dns-update shell script; keeps the same records-file and
TSIG-key contract.
2026-07-17 23:24:49 +10:00

9 lines
333 B
Bash

#!/bin/sh
set -e
systemctl daemon-reload >/dev/null 2>&1 || true
# Restart if already enabled/running; otherwise leave it for puppet to enable
# once the TSIG key and records file are in place.
if systemctl is-enabled dns-updater.service >/dev/null 2>&1; then
systemctl try-restart dns-updater.service >/dev/null 2>&1 || true
fi