Created
December 28, 2017 16:33
-
-
Save dyaa/fd67a0686dfcec56a29cd6a28def1a65 to your computer and use it in GitHub Desktop.
Update Namecheap Dynamic DNS using No-IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lookup = require('dns-lookup'); | |
var fetch = require('node-fetch'); | |
lookup('dyaa.ddns.net', function (err, address, family) { | |
fetch(`https://dynamicdns.park-your-domain.com/update?host=[HOST]&domain=[DOMAIN_NAME]&password=[PASSWORD]&ip=${address}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment