Skip to content

Instantly share code, notes, and snippets.

@jrlucier
Last active February 7, 2018 03:13
Show Gist options
  • Save jrlucier/91976e86fa4cceaf3dc6739e43f430a7 to your computer and use it in GitHub Desktop.
Save jrlucier/91976e86fa4cceaf3dc6739e43f430a7 to your computer and use it in GitHub Desktop.
Update Namecheap.com DDNS
## Create a new task from Synology Settings via Task Scheduler. Copy this as a "user defined script", replacing the __variable__ with what it should be for your account/domain:
#!/usr/bin/bash
ip="$(curl -s http://whatismyip.akamai.com)"; url="http://dynamicdns.park-your-domain.com/update?host=__sub__&domain=__domain.net__&password=__BLAHBLAH__&ip=${ip}"; echo $ip ;echo $url ;curl -f -s $url > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment