Skip to content

Uses the Dynu API to automatically updates the ddns entrys of your domain.

License

Notifications You must be signed in to change notification settings

parzival-space/dynu-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynu-DDNS

Uses the Dynu API to automatically updates the ddns entrys of your domain.
This application is intended to run as a system service on system startup.

By default, the application tries to fetch the current IP address every hour.
If it detects that the IP has changed, the domain gets updated.


Installation

It is recommended to use forever-service to install dynv6-ddns as a system service.

# Install forever-service
npm i -g forever forever-service

# Pull this repository and install dependencies
git clone https://github.com/parzival-space/dynu-ddns.git
cd ./dynu-ddns
npm i

# Install this node application
forever-service install dynu-ddns -s app.js

Uninstall

To install Dynu-DDNS service you can just run the command below:

forever-service delete dynu-ddns

Configuration

To configure the application you just have to edit the config.json file with the following synthax:

PropertyTypeDescriptionExample
zoneStringThe Domain you want to update.example.org
tokenStringYour API-Key.ASDhpoahsdohasODHOhsDASohooA-g
ipv4EnabledBooleanDo you want to update the IPv4 address?true
ipv6EnabledBooleanDo you want to update the IPv6 address?false
intervalNumberThe update interval in hours.1

Example

{
  "zone": "<<YOUR DOMAIN>>",
  "token": "<<YOUR API KEY>>",

  "ipv4Enabled": true,
  "ipv6Enabled": false,

  "interval": 1
}

API Endpoints

These are the APIs the applications uses:
seeip.org to fetch current IP adress (IPv4 and IPv6).
dynv6.com to update your DNS records.

Releases

No releases published

Packages

No packages published