/dyndns

Dynamic DNS: Bash script to (fully remotely) update a DNS entry on a Plesk server, as soon as your WAN IP changes.

Primary LanguageShellOtherNOASSERTION

Dynamic DNS to use with your Plesk server

Shell script to remotely update the A-record of a subdomain DNS entry, managed by a Plesk server.

##Installation:

  1. Create a subdomain in Plesk to use as your dynamic DNS hostname (no hosting required)
  2. optional: edit SOA record of subdomain, change TTL to a low value to make things faster
  3. edit script configuration
  4. create a crontab on your local machine to run every n minutes (*/5 * * * * sh dyndns.sh)
  5. ???
  6. profit!

##@todo:

  • better error handling
  • create subdomain from script
  • make more things optional
  • ...

Tested with:

  • Plesk 10
  • Plesk 11.5

For any other version, first make sure the column exists and is in use by Plesk. To update your bind adresses, you'll also need the dnsmng tool by Plesk, alternativly you can update DNS cache yourself of course.