• Dynamic DNS js

    From Mindless Automaton@VERT/ELDRITCH to DOVE-Net.Programming_(Javascript) on Wed Mar 28 11:11:18 2012
    I am using dtdns.com for dynamic dns. Usually my IP changed maybe 2 ãtimes a year, so I didnt really worry about an updater. This month ãthough the IP has changed like 3 times so I figured I would hack one up ãin js.ããAll you have to do is: ãGet("http://www.dtdns.com/api/autodns.cfm?id=eldritch.darktech.org&pw=password&client=dtdns.js");ããHowever I am not really sure how to check the current IP vs the IP ãdtdns.com has.ããAny tips?ããThanks!ããMindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBS - eldritch.darktech.orgã
  • From Mindless Automaton@VERT/ELDRITCH to Mindless Automaton on Thu Apr 5 08:25:07 2012
    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?ããThanks!ããMindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBS -
    eldritch.darktech.orgã
  • From Digital Man@VERT to Mindless Automaton on Thu Apr 5 16:17:30 2012
    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ã
  • From Mindless Automaton@VERT/ELDRITCH to Digital Man on Mon Apr 9 09:24:55 2012
    On 04/05/2012 07:17 PM, Digital Man wrote:ã> 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ãã> >ã> > 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ããObviously I'm not sure what I'm doing either. :)ããHmm.. I thought I had tried using those two lines and it wasnt working, ãbut since it does now, I must have screwed something up previously.ããThanks!ããMindless Automatonã---ã þ Synchronet þ Eldritch Clockwork BBS - eldritch.darktech.orgã