Files
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

31 lines
793 B
Desktop File

[Unit]
Description=DNS record updater (RFC2136 dynamic DNS from a records file)
Documentation=https://git.unkin.net/unkin/dns-updater
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
EnvironmentFile=-/etc/dns-updater/env
ExecStart=/usr/bin/dns-updater
Restart=on-failure
RestartSec=5
WatchdogSec=0
# Hardening. Runs as root to read the root-owned TSIG key; lock the rest down.
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
ProtectKernelTunables=true
ProtectControlGroups=true
ProtectKernelModules=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
RestrictNamespaces=true
ReadWritePaths=/var/lib/dns-updater /run/dns-updater
RuntimeDirectory=dns-updater
StateDirectory=dns-updater
[Install]
WantedBy=multi-user.target