Use WHM CPanel as Dynamic DNS Service

By Jake Edwards | Tuesday, April 7th, 2015 | Permalink | 1 Comment

Several of the previously-free Dynamic DNS providers have gone paid. I already have a cPanel-based hosting account, so I figured why not use the DNS Zone-editing mechanism to create my own personal Dynamic DNS Provider? Seems I wasn’t the only one who thought of that :).\

WHMDDNS

The following script on GitHub gives you a PHP example on how to dynamically update the zone edit files based on a request from a router or internet connected device that needs the Dynamic DNS Name.

https://github.com/TeamPalmTree/WHMDDNS

This assumes you have the domain within your cPanel account as the primary domain, or an Add-on domain, plus that you have access to the DNS Zone Editing tools.

DNSZoneEditorCpanel

The updater will need to the use the following custom URL sequence;

http://[USERNAME]:[PASSWORD]@webserver.com/WHMDDNS.php?hostname=[DOMAIN]&myip=[IP]

You’ll need to adjust the pattern to match the substitution tokens as you see fit.

OpenWRT & ddns-scripts

OpenWrt has a DDNS updater available through the means of ddns-scripts.

This is a screenshot of how the entry would need to be setup to work with the script above for the following;

Domain: sample.shadowsplace.net
Username: cpanelusername
Password: cpanelpassword

DDNS Setup on OpenWRT for WHMDDNS

  1. Hello my friend could tell me if this still works. For me it does not work, you can help me please.

    Comment by Byron — June 27, 2016 @ 1:53 am

Leave a comment