Coder Social home page Coder Social logo

dynname's Introduction

dynname

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

Steps to make it working

Download dynname app

git clone https://github.com/skitsanos/dynname.git

Now, let's get inside of it and setup things

cd dynname

Add execution rights to a server.js script

chmod +x server.js

Install app dependencies

npm install

It will install commander and request packages

Link it

npm link

Verify if runs properly

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

Configure dynname client

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.

dynname's People

Contributors

skitsanos avatar lordburtz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.