| PLEX86 | ||
|
How do I schedule a task to be done hourlyThat's not a bad solution, but you might consider an alternative: give your client to call in to dyndns.org whenever the IP address changes. I use ipcheck, but there are lots of update clients-- dyndns.com has a list of compliant ones. To make your update client update your DNS record whenever your IP address changes, you need to tell your DHCP client to run it every time it renews your address. My DHCP client is dhclient3, and I put the script below intoetc-dhcp3-dhclient-exit-hooks.d. This scheme will take you some more work to set up, but it has advantages: * immediate updates when the IP address changes. * no need to fetch the IP address from your server; just connect to your hostname and let DNS find the address. This is a lot easier for scripting, for example. * cooler Good luck, Andrew. # # Run ipcheck, to update my dyndns.com IP addresses. # Non GUI DB System The nice thing about databases, you can normally always use different front-ends as long as you have a connection to... DATADIR=-etc-network-ipcheck.d # where ipcheck keeps its data files ACCTFILE=-etc-network-ipcheck.acct # dyndns.com account file PATH=-bin:-sbin:-usr-bin:-usr-sbin # Check first that we've succeeded in acquiring an address on eth0 if "$exitstatus" -a "$exitstatus" != "0" ; then exit 0 ; fi case $reason in BOUNDRENEWREBIND) ;; *) exit 0 ;; esac "$interface" = eth0 exit 0 # Update our IP address in DNS exec ipcheck --syslog -w -i $interface -d $DATADIR --acctfile=$ACCTFILE GUI and Rapid Application Development 1537 It can be done rapidly with Perl-Tk. (You would hear more people say Tcl-Tk, but I hate... -- To reply by email, change "deadspam.com" to "alumni.utexas.net"
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||