dyndns

module
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0

README ΒΆ

dyndns

Go Report Card test-workflow release-workflow golangci-lint-workflow

Automatically updates DNS records for hosts that don't have a static IP

Features

πŸ“£ Dynamically updates a DNS record to match your public IP address
πŸ” Continuously checks for your public IP address
🚏 Checks your network interface's IP address directly or calls HTTP APIs to detect your public IP
🎭 Runs in client / server mode and communicates via MQTT to limit blast-radius
πŸ” Messages are cryptographically signed, therefore public MQTT brokers can be used
🏰 Built-in resiliency for different failure scenarios
πŸ”‘ Can use either dynamic credentials using Hashicorp Vault or static credentials
πŸ”­ Observability through Prometheus metrics

Why would I need it?

πŸ“Œ You don't have a static public IP address
🀹 Ideally, you have multiple endpoints you want to assign DNS records to

Installation

Docker / Podman
$ docker pull ghcr.io/soerenschneider/dyndns-server:main
$ docker pull ghcr.io/soerenschneider/dyndns-client:main
Binaries

Head over to the prebuilt binaries and download the correct binary for your system.

From Source

As a prerequesite, you need to have Golang SDK installed. After that, you can install dyndns from source by invoking:

$ go install github.com/soerenschneider/dyndns@latest

Configuration

Head over to the configuration section to see more details.

Getting Started

First, you need to build a keypair. This is easily done

$ docker run ghcr.io/soerenschneider/dyndns-client -gen-keypair
{"public_key":"IyXH8z/+vRsIUEAldlGgKKFcVHoll8w2tzC6o9717m8=","private_key":"h7jrhYupN0LVPnVWqFun6sN+bWNr0B0mh7/mgRaKnhsjJcfzP/69GwhQQCV2UaAooVxUeiWXzDa3MLqj3vXubw=="}

Architecture

Message format

Data sent over the wire is expected to have the following format, encoded as a JSON message.

Field Name Description JSON Key Data Type Optional
PublicIp The resolved IP address. "public_ip" Object No
Signature The signature associated with the envelope. "signature" String No
Field Name Description JSON Key Data Type Optional
IpV4 The IPv4 address (optional). "ipv4" String Yes
IpV6 The IPv6 address (optional). "ipv6" String Yes
Host The hostname associated with the resolved IP address. "host" String No
Timestamp The timestamp when the resolution occurred. "timestamp" Time No

Observability

Head over to the metrics to see more details.

Changelog

The changelog can be found here

Jump to

Keyboard shortcuts

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