[Memphis.pm] smc barricade routerand dynamic dns script
Alaric Ravenhall
alaricravenhall at hotmail.com
Fri Oct 19 19:36:09 CDT 2001
Hi mongers.
I've run into an interesting problem I'm going to solve with Perl.
I have a friend with an ethernet DSL modem and an SMC barricade router. He
is running an apache webserver and has a dynamic DNS name - Hn.org.
He wants to automatically update his DNS with his current IP every hour. No
problem with Linux and cron, right? Well... he is behind the router and the
hn.org Perl script grabs the ip address of his webserver, which is assigned
via DHCP. So, heres's my plan:
Write a Perl script that pulls the embedded web page from his router and
regexes it for the external IP. Store that to a variable, and throw it up to
HN.org in the required manner. Schedule it with cron, and BAM!(props to
Emeril) issue solved!
I will probably use LWP:user agent to pull the page from the router.
Comments?
Ravenhall
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
----------------------------------------------------------------------------
To unsubscribe, please send email to majordomo at pm.org
with 'unsubscribe memphis-pm-list' in the body of the message.
----------------------------------------------------------------------------
More information about the Memphis-pm
mailing list