Re: Re: Dynamic DNS jsã By: Mindless Automaton to Mindless Automaton on Thu Apr 05 2012 08:25 amãã > On 03/28/2012 11:11 AM, Mindless Automaton wrote:ã > > I am using dtdns.com for dynamic dns. Usually my IP changed maybe 2ã >ã > Okay, so I hacked up wget.js to get something like this:ã >ã > <js>ã > load("http.js");ã >ã > var url = argv[0];ã > var filename=js.startup_dir + '/' + file_getname(url);ã >ã > var file = new File(filename);ã >ã > if(!file.open("w"))ã > print("error " + file.error + " opening " + file.name);ã > else {ã > var contents = newã > HTTPRequest().Get("
http://www.dtdns.com/api/autodns.cfm?id=eldritch.darktechã > .org&pw=password&client=dtdns.js");ã > file.write(contents);ã > file.close();ã > }ã > </js>ã >ã > I know I dont need the file stuff for this, but the changes I have triedã > have all failed.ã >ã > Any tips for tidying this up?ããI'm not sure what you're trying to do. If you just need the HTTP-GET, then you ãshould be able to remove all lines except the load() and HTTPRequest() lines.ãã digital manããSynchronet "Real Fact" #59:ãFree dynamic yourbbs.synchro.net hostnames were made first available in 2003.ãNorco, CA WX: 64.5øF, 54.0% humidity, 9 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã