0.1.1 • Published 5 years ago

digitaldceandyndns v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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.

PropertyDescriptionRequiredDefault value
nameThe name of the recordYes
typeThe DNS record's type, like A, SRV and CNAMENo"A"
dataThe record's content. Also known as value.NoThe public IPv4 of the machine
ttlTime to live.No300
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>).