I am using dtdns.com for dynamic dns. Usually my IP changed maybe 2
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:
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?
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
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,038 |
Nodes: | 15 (0 / 15) |
Uptime: | 148:22:44 |
Calls: | 500,200 |
Calls today: | 1 |
Files: | 95,197 |
D/L today: |
419 files (86,933K bytes) |
Messages: | 465,993 |