Use WHM CPanel as Dynamic DNS Service

By Jake Edwards | Tuesday, April 7th, 2015 | Permalink | 3 Comments

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 :).\


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.

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.


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


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;

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

  2. This only works if you have WHM access (aka: you own the server, or you’re a reseller). It does not work with a plain cPanel account.

    Comment by Blah — April 11, 2018 @ 8:59 am

  3. […] Use WHM CPanel as Dynamic DNS Service […]

    Pingback by DDNS: Is a DIY solution possible? Better? – yyyb — September 11, 2018 @ 12:52 pm

Leave a comment