I have a dedi server with cPanel, and one of my domains is hosted there. Right now, I have an A record for a subdomain pointing to my IP here at home (subdomain.domain.com). This is handy for the occasions where I need to access something on my home computer from elsewhere, since I certainly can't memorize an IP. I'm not trying to run a webserver or anything, I just have SSH (and maybe VNC in the future) running. Strictly for personal use.
I want to do DDNS, but I want to use my domain. I know there's no-ip and stuff, but I'll never remember the domain I choose. For my setup, I have imac.mydomain.com, and will probably do powerbook.mydomain.com and htpc.mydomain.com too if I can get this working. Easy stuff to remember ;)
So how would I go about setting up a DDNS server on my dedi? I don't know where to begin. Thanks
mrzippy
08-27-2007, 01:21 AM
I'm not aware of any "out of the box" 3rd party software that will do this with a cpanel server.
You need to be very careful, because if you mess up the DNS, then you'll be in a lot of trouble.
Basically, what you need is some kind of program that "listens" on your server for the ddns update client. When an update comes in, the appropriate zonefile is modified as needed and then BIND is reloaded.
You could perhaps try posting into the forums.cpanel net forums and see if anyone has done something like this before. Maybe you can do this with a custom mod that runs on the port for WHM? (This way, it will run as root, etc..)
foobic
08-27-2007, 02:44 AM
Easiest way is probably to use CNAMEs on your domain pointing to the no-ip or whatever ddns domain.
If you really want to brew your own ddns on CPanel then another way to do it would be to run a script on your home computer that connects to the CPanel server using the WHM remote access key and modifies the zone file through WHM's edit zone function. I'd set the domain up on a reseller account to get WHM access without root.
I can point you to a perl script doing this if you're interested.
Easiest way is probably to use CNAMEs on your domain pointing to the no-ip or whatever ddns domain.
If you really want to brew your own ddns on CPanel then another way to do it would be to run a script on your home computer that connects to the CPanel server using the WHM remote access key and modifies the zone file through WHM's edit zone function. I'd set the domain up on a reseller account to get WHM access without root.
I can point you to a perl script doing this if you're interested.
Sounds interesting. If you could point me to a Perl script, that would be awesome
berdellans
08-31-2007, 11:33 PM
I would also like to see a perl script to update my whm account with DDNS. Could you send me any information you have on setting up DDNS with WHM for my personal domains?
Thanks for your help.
foobic
09-01-2007, 01:26 AM
Hi berdellans
I replied to t325 by pm but since you've requested the same thing I'll repeat it here - mods, feel free to delete if you think it's not appropriate.
In the the download package of site in my sig you'll find some perl scripts doing what I described. Note that these do *not* in themselves do ddns but they do provide the mechanism for maintaining a local copy of the zone file and sending it to a CPanel server using WHM functions and remote key authentication.
To extend this as a standalone ddns program you'd first need to check your IP address and whenever it changes, change the relevant A record in the zone file to match.