Skip to content

Instantly share code, notes, and snippets.

@mook
Created October 18, 2017 04:25
Show Gist options
  • Select an option

  • Save mook/5c5fc9f81cfc67812b392e2fe725e481 to your computer and use it in GitHub Desktop.

Select an option

Save mook/5c5fc9f81cfc67812b392e2fe725e481 to your computer and use it in GitHub Desktop.
Afraid.org Dynamic DNS updating units

Usage

  • Save files as /etc/systemd/system/dyndns-afraid@.service and /etc/systemd/system/dyndns-afraid@.timer
  • 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 dyndns-afraid@XXXXXXXX.timer to enable processing
[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
[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