do-dyndns

command module
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 1 Imported by: 0

README

cenk1cenk2/do-dyndns

Build Status Docker Pulls Docker Image Size (latest by date) Docker Image Version (latest by date) GitHub last commit


Description

This utility provides a native way to update "A" records of a domain that is managed by Digital Ocean name-servers. Simply create an API token to access and update domain records depending on the IP address of the host that is running this utility.

Install

Platforms linux-amd64, linux-arm64, linux-armv7 is supported.

Deploy with docker-compose

Published image is available in Docker Hub as cenk1cenk2/do-dyndns. Will work on every platform defined.

version: "3.7"
services:
  do-dyndns:
    image: cenk1cenk2/do-dyndns
    environment:
      - DYNDNS_DOMAINS=example1.com
      - DYNDNS_SUBDOMAINS=1.example1.com,2.example2.com
      - DYNDNS_TOKEN=$DIGITAL_OCEAN_TOKEN
Get Binary From Releases

You can find the natively compiled versions in the releases.

Install Binary with Bash Script

Only linux-amd64 is supported. May update this in future.

curl https://raw.githubusercontent.com/cenk1cenk2/do-dyndns/master/install.sh | bash

Setup

Utilizing the Configuration File

Create a .yml file in any of the locations ., /etc/do-dyndns, ~/.config/do-dyndns named .do-dyndns.yml.

You can also pass in --config flag to pass in the absolute path of the configuration file.

The configuration file structure is as below:

domains:
  - example.com
subdomains:
  - 1.example.com
token: DIGITAL_OCEAN_TOKEN
repeat: 3600 # this is optional and 3600 is the default if you want repeat
Utilizing the Environment Variables

To run with environment variables just pass in the variables with DYNDNS_ prefix.

Environment Variable Description Default
DYNDNS_TOKEN Digital Ocean API token.
DYNDNS_DOMAINS Comma-seperated list of domains to run against.
DYNDNS_SUBDOMAINS Comma-separated list of subdomains, which must match with the domains or else will be skipped.
DYNDNS_REPEAT Check repeat time in seconds. 3600

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL