View Single Post
  #3  
Old 17th August 2005, 11:03
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,184
Thanks: 829
Thanked 5,415 Times in 4,258 Posts
Default

Quote:
Originally Posted by domino
I've search here and didn't find any hit that pertains to my question. So i'm sorry if this has been covered. I know this should be posted in the proper site, but I figured this post can be useful to other n00bs like myself.

How do I add the fallowing to cron every 15min?

Code:
wget -O - --http-user=username --http-passwd=password "https://dynamic.zoneedit.com/auth/dynamic.html?host=domain.com"
I have webmin installed and I am in the cron section. I'm guessing I paste the code above in the "Input to command" box. But what do I type in the "Command" box? Should I run this job as root? What if I need to update 3 other domains? Do I create 3 other cron jobs?

Can anyone recomend a n00b friendly DNS client with gui? What about ez-ipupdate? I have the RPM version for RedHat, but will it work properly with Fedora?

Greets!
I would solve it like this:

1) Write a small shell script that contains the code for the zoneupdates, lets call it zoneupdate.sh, we store it for example in the /root folder.

Contents of /root/zoneupdate.sh

Code:
#!/bin/bash

wget -O - --http-user=username --http-passwd=password "https://dynamic.zoneedit.com/auth/dynamic.html?host=domain.com"
In this shellscript you can add a line for each domain.

To make the script executable, run this comand:

Code:
chmod +x /root/zoneupdate.sh
Now we add the cronjob. Run this command on the shell as root user to open the root crontab in an editor:

Code:
crontab -e
Then we insert this line at the end and save the file:

Code:
0,15,30,45 * * * * /root/zoneupdate.sh &> /dev/null
(This is untested and may contain errors )
Reply With Quote