DirectAdmin DNS records syncer
_assets | ||
.gitignore | ||
LICENSE | ||
README.md |
DirectAdmin DNS records syncer
This tool synchronizes DNS records between DDNS and DirectAdmin.
I'm unable to find decent solution for sending updates from my Archer C6, so I came up with a tool that is intended to query TP-Link DDNS service (ns1.tplinkdns.com
) for my router's external IP and to update DNS record for int
subdomain in DirectAdmin panel.
When life gives you lemons then spin up the hamster ¯\_(ツ)_/¯
Installation
go get git.ext.icikowski.pl/icikowski/ip-ddns@latest
Configuration
Environment variable | Description |
---|---|
SYNCER_DA_URL |
DirectAdmin panel URL (default: https://s149.cyber-folks.pl:2223 ) |
SYNCER_DA_USER |
DirectAdmin panel username |
SYNCER_DA_TOKEN |
DirectAdmin panel token |
SYNCER_DOMAIN_SRC_NAME |
Source domain name (DDNS one) |
SYNCER_DOMAIN_SRC_NAMESERVER |
Source nameserver (DDNS one) |
SYNCER_DOMAIN_DST_NAME |
Destination domain name (DA one) |
SYNCER_DOMAIN_DST_NAMESERVER |
Destination nameserver (DA one) |
SYNCER_DOMAIN_ENTRY_DN |
Entry domain name (from domains configured in DA) |
SYNCER_DOMAIN_ENTRY_NAME |
Entry name |
SYNCER_DOMAIN_ENTRY_TTL |
Entry TTL (default: 60 ) |
SYNCER_RESYNC_TIME |
Resync time (default: 15m ) |