![]() |
Update for dynamic dns...
Here's my thoughts for updating my ISPConfig3 MyDNS when my dynamic IP changes. I haven't had it change yet so I'm not 100% sure it's going to work.
On a remote server that has server side includes there is ip.shtml that contains only this line Code:
<!--#echo var="REMOTE_ADDR" -->Then there is a cron job running update_ip_address.php every 10 minutes. This file outputs to dynamic.html which is just an indication if something changed or not. Code:
<?phpI haven't had my IP address change yet but this seems like it should work. Thoughts? Comments? |
I did some updates to this little script. Sometimes my remote server wasn't responding and so I would have an empty IP address. I added a check do do nothing if this is the case.
Also added some lines to email me when the IP changed, one of which goes to my cell phone. This script runs on a cron job every 10 minutes with the output piped to a log file. The log file is rotated with logrotated. Seems to work well so far. Putting the update here just in case anyone can use it. Quote:
|
| All times are GMT +2. The time now is 21:52. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.