Giter Club home page Giter Club logo

dmedyn's Introduction

DMEDyn

DNS Made Easy - Dynamic DNS updater.

This simple script updates your DNSMadeEasy account with your current IP address.

Basic operation

  1. Check the current outward facing IP address by calling ipify.org (this can be changed in settings)
  2. If the IP has changed...
  3. Update each domain A record with the new IP
  4. If we are in --daemon mode, goto 1.

Installation and usage

Use NPM to download the script:

sudo npm install -g dmedyn

Create a ~/.dmedyn.json file containing your site configuration such as the below example:

{
	"username": "yourUsername",
	"password": "yourPassword",
	"domains": {
		"domain1.com": 11111111,
		"subdomain.somewhere.com": 22222222
	}
}

The username is your DME username. The password is created when using the "Dynamic DNS" option of your DNS record in the DME admin screen. You'll also find a "Dynamic DNS ID" in the DME admin screen which will need to be used in place of the 11111111, 22222222, etc values.

Running DMEDyn

Running in the foreground

Run dmedyn to update your IP just once:

dmedyn

Running as a Daemon with Forever

To use dmedyn within a process container like forever, run dmedyn in --daemon mode:

forever start `which dmedyn` -vd

The which dmedync bit is because forever needs to know the path of the actual JS file to monitor it.

Running as a Daemon with PM2

To use dmedyn within a process container like pm2, run dmedyn in --daemon mode:

pm2 start `which dmedyn` --name dmedyn -- -vd

The which dmedync bit is because PM2 needs to know the path of the actual JS file to monitor it.

dmedyn's People

Contributors

derekseymour avatar hash-bang avatar ytechie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.