DynDNS Client for Servercow to update records dynamically via the DNS API
50K+
This container is a dyndns client for servercow. It is designed to run in a Docker environment and updates the DNS records of a domain hosted on servercow.de with the current public IP address.
Before running this script, ensure you have the following:
DOMAIN: The domain name for which DNS records need to be updated.USER: servercow.de username (user needs access to the DNS API).PASSWORD: servercow.de password.INTERVAL (optional): Interval in seconds between each DNS update (default is 120 seconds).SUBDOMAIN (optional): Subdomain to update (default is the root domain).IPv4 (optional): Whether to update IPv4 address (default is true).IPv6 (optional): Whether to update IPv6 address (default is false). See notes below. ⚠️PROVIDER_IPv4 (optional): Provider URL to fetch IPv4 address (default is https://ifconfig.co).PROVIDER_IPv6 (optional): Provider URL to fetch IPv6 address (default is https://ifconfig.co).docker run -d \
--name ddns-servercow \
-e DOMAIN="yourdomain.com" \
-e USER="your_api_username" \
-e PASSWORD="your_api_password" \
-e IPv4="true" \
-e IPv6="false" \
tobvor/ddns-servercow
version: '3'
services:
ddns-servercow:
image: tobvor/ddns-servercow
container_name: ddns-servercow
environment:
- DOMAIN=yourdomain.com
- USER=your_api_username
- PASSWORD=your_api_password
- IPv4=true
- IPv6=false
restart: always
"yourdomain.com", "your_api_username", and "your_api_password" with your actual domain name, Servercow.de API username, and password respectively.SUBDOMAIN environment variable accordingly.IPv4 and IPv6 environment variables.PROVIDER_IPv4 and PROVIDER_IPv6 environment variables accordingly.IPv6 is set to true, either IPv6 support must be activated for Docker (see Enable IPv6 support) or the container must be executed within the host network using network_mode: host.The script continuously checks the public IP address of the container at a specified interval. If the IP address changes, it updates the DNS records of the specified domain/subdomain on Servercow.de accordingly.
This script is licensed under the MIT License. Feel free to modify and distribute it as needed.
Content type
Image
Digest
sha256:f71660996…
Size
71.3 MB
Last updated
4 months ago
docker pull tobvor/ddns-servercow:v4.0.1