digitaldceandyndns
v0.1.1
Published
Automatically updates DNS records at DigitalOcean.
Downloads
3
Readme
DigitalOceanDynDNS
Automatically update DigitalOcean Domains Records.
config.yaml
The main config file is config.yaml
. Each domain is specified inside the domains
array. In each element of the domains
, you must specify the name of the domain in name
, and the domain's records in the records
array.
| Property | Description | Required | Default value |
| -------- | -------------------------------------------------- | -------- | ------------------------------ |
| name
| The name of the record | Yes | |
| type
| The DNS record's type, like A
, SRV
and CNAME
| No | "A"
|
| data
| The record's content. Also known as value. | No | The public IPv4 of the machine |
| ttl
| Time to live. | No | 300
|
domains:
- name: lynx.agency
records:
- name: "@"
type: "A"
data: 1.1.1.1
ttl: 300
- name: "*"
type: "A"
data: 2.2.2.2
ttl: 500
- name: xn--sdermalmsskolan-8sb.com
records:
- name: "@"
Authenticating
You must also provide your DigitalOcean API Key in order for this program to work. Simply add the environment variable API_KEY
and set its value to your key (export API_KEY="<REPLACE WITH YOUR DIGITALOCEAN API KEY>"
) or pass the argument api-key
to the process (node . --api-key=<REPLACE WITH YOUR DIGITALOCEAN API KEY>
).