Name.com API Client to set IP on hostname when you run on dynamic IP
To run this service, you need to have node.js installed and working account on name.com
git clone https://github.com/skitsanos/dynname.git
Now, let's get inside of it and setup things
cd dynname
chmod +x server.js
npm install
It will install commander and request packages
npm link
dynname --help
It should print you out something like this:
dynname, v.1.0.1 (Dynamic DNS client for name.com)
Usage: dynname -hostname
Options:
-v, --version output the version number
-host, --hostname <hostname> hostname
-h, --help output usage information
There is a +config.json_ file with the following content:
{
"username": "YOUR NAME.COM USERNAME",
"token": "NAME.COM TOKEN",
"domain": "DOMAIN NAME TO BE USED"
}
Besides name.com username you need to have also API token, which you can get for free from here: https://www.name.com/api_about. And, of course, you need to have at least one domain registered, so you can setup hostname on it.
Once you have your config.json ready, you can run from comand line a command like this:
dynname -host foo
It will create a foo.yourdomainname record in DNS settings of yourdomainname.
Now you can setup a cron job or Windows Scheduled Task to execute this script, let's say, every hour, to make sure your DNS is always updated so you can access your location by hostname, instead that dynamic IP that you always have to hunt down because your ISP is changing it all the time.