Bennyland this server is running in my bedroom – benny’s learning how to run a linux server

20Jan/100

Dynamic DNS support for WHM using ddclient

The server which I use to use to host my websites is now primarily used as my DNS and also a backup ftp space for this server to store backups (that way I don't have to buy some sort of tape backup thing). This is great except for the fact that my IP changes a couple of times a year. Up until now I was pushing requests from the webhost's DNS to dyndns and then to my home server running ddclient to update dyndns. Of course I could have paid around $30 a year per domain but I'm cheap.

So I modified ddclient so that it would update my host's DNS server. My host uses cpanel/WHM which luckily has a JSON API!

Here's how you can make the same modifications: