nano /etc/init.d/noip-update.sh
#!/bin/sh
#
# Purpose :
# This script updates the no-ip alias.
# The specifications of the noip update
# protocol can be found at :
# http://www.no-ip.com/integrate/
#
# Author :
# Raphael Jolivet
#
# Last update:
# 14-05-2005
# Misc params (Set it to what you need)
LOGIN=XXXXXXXXXXXXX # NoIp login
PASS=XXXXXXXXXXXX # NoIp pass
HOST=XXXX1,XXXX2,XXXX3 # The sites to be updated
LOGFILE=/var/logs/noip.txt # The log file
# Log the date
echo "" > $LOGFILE
echo "Updating no-ip DNS entry" >> $LOGFILE
echo "------------------------" >> $LOGFILE
date >> $LOGFILE
# Call No-ip Update system
result=`curl -s "http://dynupdate.no-ip.com/dns?username=$LOGIN&password=$PASS&hostname=$HOST" 2>&1`
# Log the result
echo "Result from no-ip: $result" >> $LOGFILE
chmod +x /etc/init.d/noip-update.sh
crontab -e
03 */12 * * * /etc/init.d/noip-update.sh