02e3e0315d
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.
9 lines
333 B
Bash
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
|