UNPKG

ddnspod

Version:

A DDNS Client by DPSPOD API.

39 lines (34 loc) 1.25 kB
//// Require //var ddnspod = require('./index.js'); // //// Update the DNS. //var dnsUpdate = function(){ // ddnspod({ // server : 'dnspod.com', // which server you are using . dnspod.com (default) | dnspod.cn // token : '81496,dc468$3f5e49d5063d902fccff774baddfa4ee', // your login token, you can find how to get this at the top. // domain : 'hateip.com', // your domain // subDomain : 'test' // which subdomain do you want to set. default : @ // // localIp : true, // use local IP instead of internet IP. // // ip : '127.0.0.1' // specific the IP // }).then(function(res){ // console.log(res); // },function(error){ // console.log(error); // }) //}; // //// Start Update //dnsUpdate(); // Require var ddnspod = require('./index.js'); // Update the DNS. var dnsUpdate = function(){ ddnspod({ server : 'dnspod.cn', // which server you are using . dnspod.com (default) | dnspod.cn token : '10058,1950910551e418bf9ff57b6ccaa6e22e', // your login token, you can find how to get this at the top. domain : 'xunuo.com', // your domain subDomain : 'pi' // which subdomain do you want to set. default : @ }); }; // Start Update dnsUpdate();