Skip to content

Instantly share code, notes, and snippets.

@dyaa
Created December 28, 2017 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyaa/fd67a0686dfcec56a29cd6a28def1a65 to your computer and use it in GitHub Desktop.
Save dyaa/fd67a0686dfcec56a29cd6a28def1a65 to your computer and use it in GitHub Desktop.
Update Namecheap Dynamic DNS using No-IP
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