This repository contains a Docker-based solution for automatically updating your Dynu DNS records. It's designed to keep your dynamic IP address in sync with your Dynu DNS settings, ensuring that your domain always points to the correct IP address.
Follow these steps to install and configure the Dynu IP Updater:
Prepare Your Dynu Credentials:
Pull the Docker Image:
docker pull longkeyy/dynu-updater:latest
Prepare Configuration:
Create a .env file with the following contents:
USERNAME=your_dynu_username
HASHED_PASSWORD=your_sha256_hashed_ip_update_password
HOSTNAME=your.domain.com
ALIAS=optional_alias
IPV4=optional_static_ipv4
IPV6=optional_static_ipv6
Replace the values with your actual Dynu credentials and settings. For HASHED_PASSWORD, use the SHA256 hash of your IP Update Password (see hashing instructions below).
Run the Container:
Create a docker-compose.yml file in the same directory as your .env file:
version: '3'
services:
dynu-updater:
image: longkeyy/dynu-updater:latest
container_name: dynu-updater
env_file: .env
restart: unless-stopped
Then run:
docker-compose up -d
If you prefer to use the Docker CLI directly:
docker run -d --name dynu-updater --env-file .env --restart unless-stopped longkeyy/dynu-updater:latest
The Dynu IP Updater can be configured using environment variables, a .env file, or command-line arguments.
HASHED_PASSWORD or a plain password (which will be hashed) must be provided. This should be your Dynu IP Update Password, not your account password.HOSTNAME must be provided.USERNAME: Your Dynu username (if required for authentication)ALIAS: If you're updating an alias instead of the main hostnameIPV4: Static IPv4 address (if not provided, the current public IP will be used)IPV6: Static IPv6 address (if not provided, the current public IP will be used)The order of priority for configuration is:
You can set the variables directly in the docker-compose.yml file:
version: '3'
services:
dynu-updater:
image: longkeyy/dynu-updater:latest
container_name: dynu-updater
environment:
- USERNAME=your_dynu_username
- HASHED_PASSWORD=your_sha256_hashed_ip_update_password
- HOSTNAME=your.domain.com
- ALIAS=optional_alias
- IPV4=optional_static_ipv4
- IPV6=optional_static_ipv6
restart: unless-stopped
When using Docker Compose, you can override settings by modifying the command:
version: '3'
services:
dynu-updater:
image: longkeyy/dynu-updater:latest
container_name: dynu-updater
command:
- "-u"
- "your_dynu_username"
- "-hp"
- "your_sha256_hashed_ip_update_password"
- "-h"
- "your.domain.com"
- "-a"
- "optional_alias"
- "-4"
- "optional_static_ipv4"
- "-6"
- "optional_static_ipv6"
restart: unless-stopped
To hash your IP Update Password using SHA256, you can use the following command:
echo -n "your_ip_update_password" | sha256sum | awk '{print $1}'
Use the output of this command as the value for HASHED_PASSWORD.
Once configured and running, the Dynu IP Updater will automatically check and update your DNS records every 5 minutes. You can monitor its activity by checking the container logs:
docker-compose logs
or
docker logs dynu-updater
To stop the updater:
docker-compose down
or
docker stop dynu-updater
To start it again:
docker-compose up -d
or
docker start dynu-updater
Content type
Image
Digest
sha256:3c41a5233…
Size
6.1 MB
Last updated
over 1 year ago
docker pull longkeyy/dynu-updater:1.1