dyndns
index
/home/ut3hax/bin/dyndns

dyndns
======
Dynamic DNS updater for DynDns.com
Written by Josh Lee
No warrenties what so ever.
this file is to be licensed GPL
 
When using flags to setup your config, this doesn't
actually run the program, only set up the config.

 
Modules
       
logging
optparse
os
re
sys
urllib

 
Functions
       
check(conf)
make sure everything we need to post a change to dyndns.com is located
in the config file, and has a value, we woudln't want to send a bunch of
bogus request to them.  :-)
conf_set(conf, option, value, cfile='/home/jlee/.dyndns')
Nice little wrapper that just writes a config option to our config file
current_ip(conf)
though you can specify different url, this defaults to dyndns's website.
this will just return your ip as a string
do(conf)
The heart of our program, grabs the current (nip) and old ip (from confg)
This little guy is fairly self explanitory, as they all are.
load_config(cfile='/home/jlee/.dyndns')
Load our config file for us, create it if it doesn't exist.
Also creates the first and only section used by ConfigParser.
main()
USAGE: dyndns
run(conf)
This guy actually tells dyndns.com your ip has changed.

 
Data
        DEFAULTSECT = 'DEFAULT'
MAX_INTERPOLATION_DEPTH = 10
__created__ = '2008-05-12 11:48:36.549714'
cfile = '/home/jlee/.dyndns'
log = <logging.Logger instance>