« rm * results in /bin/rm: Argument list too long. | Main | South Park Me »

ddns for linux / unix in a simple cron job

Here is a script to update your dynamic dns for linux / unix...
edit a script:

vi /root/ddns.sh

put in ddns.sh :



chmod 755 ddns.sh

then store your crontab:

crontab -l > /root/crontab.new

edit the /root/crontab.new and add the line:

*/15 * * * * /root/ddns.sh &>/dev/null

then load the new crontab:

crontab /root/crontab.new

Your done! ddns is all ready to go!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)