josephvusich / udm-route53-ddns

Dynamic DNS support for Amazon Route 53 on the UniFi Dream Machine and Dream Machine Pro.

Home Page:https://hub.docker.com/r/josephvusich/route53-ddns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udm-route53-ddns

Route53 Dynamic DNS support for the UDM and UDM Pro, using boostchicken's on_boot.d package and the awslabs Route53 Dynamic DNS stack.

Requirements

  • UniFi Dream Machine (UDM) or Dream Machine Pro (UDMP) running firmware 1.6.4+ (required for on_boot.d support).
  • (Optional) Docker, for building your own image.

Building

If you do not build your own image, the default will be used, as shown in the example config.

Installation

Modifying config

To apply configuration changes without rebooting:

  • SSH to the UDM.
  • podman restart route53-ddns

Updating

To update to a new version:

  • SSH to the UDM.
  • podman stop route53-ddns
  • docker rmi route53-ddns:unifi
  • Copy the on_boot.d script from this repo to /mnt/data/on_boot.d/
  • chmod +x /mnt/data/on_boot.d/53-route53-ddns.sh
  • Run /mnt/data/on_boot.d/53-route53-ddns.sh

Checking status

To check status of the container:

  • SSH to the UDM.
  • docker ps should show the route53-ddns container, if running.
  • docker logs route53-ddns to show the container log.

Example config

Global config

# /mnt/data/route53-ddns/config

# (Optional) Replace this with your own image built from this repo
# Defaults to: josephvusich/route53-ddns:unifi
DDNS_IMAGE=""

# Per-domain configuration now lives in separate .conf files. For
# backwards-compatibility, the global config file is still checked
# for a valid domain configuration.

Per-domain config

# /mnt/data/route53-ddns/*.conf

# apiKey from CloudFormation Outputs
DDNS_API_KEY=""

# shared_secret field from DynamoDB
DDNS_SECRET=""

# hostname field from DynamoDB, including any trailing dot
# Example: "dynamic.example.com."
DDNS_HOSTNAME=""

# apiUrl from CloudFormation Outputs, with 'https://' prefix
# Example: "https://api-gateway.example.com"
DDNS_URL=""

# Comma-delimited list of IP versions
# 'ipv4' = A record
# 'ipv6' = AAAA record
# Both records must have the same ${DDNS_SECRET}
DDNS_IPVERSIONS="ipv4,ipv6"

# (Optional) Refresh rate in seconds
# Less or equal to the TTL configured in DynamoDB
# Defaults to: 60
DDNS_TTL=""

About

Dynamic DNS support for Amazon Route 53 on the UniFi Dream Machine and Dream Machine Pro.

https://hub.docker.com/r/josephvusich/route53-ddns

License:Apache License 2.0


Languages

Language:Shell 89.1%Language:Dockerfile 10.9%