dmedyn

1.1.0 • Public • Published

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 alling 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
	}
}

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.

Readme

Keywords

Package Sidebar

Install

npm i dmedyn

Weekly Downloads

15

Version

1.1.0

License

MIT

Last publish

Collaborators

  • hash-bang