Skip to content

Dynamic DNS update script for CPanel accounts with DYNDNS.com API

Notifications You must be signed in to change notification settings

ethanpil/dyndns-cpanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

dyndns-cpanel

NOTE: PROJECT IS EOL!! C-Panel has now introduced Dynamic DNS into their core functionality, and this tool is no longer needed. Thanks for the support over the years, but this project should now be considered abandoned and EOL. More information: https://docs.cpanel.net/cpanel/domains/dynamic-dns/#/

Dynamic DNS update script for CPanel accounts using DYNDNS.com API

Based on the hard work of Mitchel Haan:

https://haanenterprises.com/2013/04/host-your-own-dynamic-dns-using-php-and-cpanel-apis/

Changes to Mr. Haan's code:

  • Removed the extra code that wasn't needed to make this an update only client
  • Changed the get vars to comply with dyndns standards
  • Added basic http authentication

##DYNDNS Compatibility Note Most dyndns clients will work to update your cpanel using this script as the custom address. You will likely need to provide the FQDN as the hostname:

(ie: hostname=remote.example.com )

Use:

http://username:[email protected]/dyndns.php?hostname=remote.domain.tld&myip=192.168.1.1

Setup

Update the variables at the top of the script to match your setting. Comments are provided to explain the values.

Under certain server configurations customonly on line 209 must be set to 0 in order to find subdomain records. See #3

Support

As is. No support provided.

Thanks

  • Mitchel Haan for doing all the real work.
  • @mihaiile for some security tweaks.
  • @mattlyons0 for information on customonly
  • @f03el for improved dyndns compliance

About

Dynamic DNS update script for CPanel accounts with DYNDNS.com API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages