- Save files as
/etc/systemd/system/[email protected]
and/etc/systemd/system/[email protected]
- Run
systemctl daemon-reload
to pick up the new files - Log in at http://freedns.afraid.org/dynamic/v2/
- Note the last component of the URL for updating (
http://sync.afraid.org/u/XXXXXXXX/
) - Run
systemctl enable --now [email protected]
to enable processing
Created
October 18, 2017 04:25
-
-
Save mook/5c5fc9f81cfc67812b392e2fe725e481 to your computer and use it in GitHub Desktop.
Afraid.org Dynamic DNS updating units
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Afraid.org Dynamic DNS Updater | |
Documentation=http://freedns.afraid.org/ | |
Requisite=network-online.target | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/curl --silent http://sync.afraid.org/u/%i/ | |
Nice=19 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Afraid.org Dynamic DNS Updates | |
Documentation=http://freedns.afraid.org/ | |
[Timer] | |
OnBootSec=15min | |
AccuracySec=15min | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment