To make it work:
-
systemctl enable systemd-networkd-wait-online.service
-
Copy
update-dns-record.service
into/etc/systemd/system
and runchmod 0755 /etc/systemd/system/update-dns-record.service
-
Copy
update-dns-via-api.sh
into/root/.systemd/
and runchmod 0755 /root/.systemd/update-dns-via-api.sh
-
Finally adjust
update-dns-via-api.sh
wth the rightAPIKEY
value
Notes: api.dns.lan
should point to your PowerDNS IP