Skip to content

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

License

Notifications You must be signed in to change notification settings

parzival-space/dynv6-ddns

Repository files navigation

Dynv6-DDNS

Uses the Dynv6 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-service

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

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

Uninstall

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

forever-service delete dynv6-ddns

Configuration

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

PropertyTypeDescriptionExample
zoneStringThe Dynv6-Zone you want to update.example.org
tokenStringYour access token.ASDhpoahsdohasODHOhsDASohooA-g
ipv4EnabledBooleanDo you want to update the IPv4 address?true
ipv6EnabledBooleanDo you want to update the IPv4 address?false
intervalNumberThe update interval in hours.1

Example

{
  "zone": "<<YOUR_DOMAIN>>",
  "token": "<<YOUR_TOKEN>>",

  "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