1.1.0 • Published 9 years ago
dmedyn v1.1.0
DMEDyn
DNS Made Easy - Dynamic DNS updater.
This simple script updates your DNSMadeEasy account with your current IP address.
Basic operation
- Check the current outward facing IP address by alling ipify.org (this can be changed in settings)
- If the IP has changed...
- Update each domain A record with the new IP
- If we are in
--daemonmode, goto 1.
Installation and usage
Use NPM to download the script:
sudo npm install -g dmedynCreate 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:
dmedynRunning as a Daemon with Forever
To use dmedyn within a process container like forever, run dmedyn in --daemon mode:
forever start `which dmedyn` -vdThe 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 -- -vdThe which dmedync bit is because PM2 needs to know the path of the actual JS file to monitor it.