View Single Post
Old 10th January 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by JMJ_coder View Post
I don't think that dynamic DNS would work because there is no domain name associated with it.
It's true the hostname supplied by the ISP (if they do (which they should)) will be as dynamic as the IP address. However, that doesn't matter as you don't need to use it. With DynDNS (and the like) you can pick your own static hostname (i.e., the name doesn't change). Something like myhostname.dyndns.org . Then the IP address associated with this name is changed dynamically by you. So when you look up that hostname you'll get the current IP that you've assigned to it.

E.g., you could run a cron job on the machine in question to check its own IP every 10 minutes, say, and if it has changed since last time, then it runs a program to update the IP address that is associated with myhostname.dyndns.org on the DynDNS servers.
Reply With Quote