Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
DNSimple hostname updater on OS X (prior to Yosemite)
. /etc/rc.common
AUTH_EMAIL='' # dnsimple account email address
AUTH_TOKEN='' # dnsimple api token
DOMAIN_ID='' # domain name or id
RECORD_ID='' # record id to update
foo ()
curl -H "X-DNSimple-Token: $AUTH_EMAIL:$AUTH_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X PUT \
-d "{\"record\":{\"content\":\"$IP\"}}" \$DOMAIN_ID/records/$RECORD_ID
StartService ()
# StopService ()
# {
# }
RestartService ()
RunService "$1"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>DNSimple Dynamic Local IP Updater</string>
Copy link

OS X Yosemite removed the SystemStarter executable; this approach has been deprecated and should be used on systems running OS X Yosemite and higher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment