Skip to content

b2un0/docker-netcup-dyndns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netcup DNS API DynDNS Docker Client

Docker Pulls Docker Build MicroBadger Size

Credits

based on business logic from:

This container uses the official PHP image as a base image (cli-alpine)

pre requirements

  • Create each host record in your netcup CCP before using the script. The script does not create any missing records!

run as docker container

via docker-compose.yml on your NAS

version: '3'

services:
    netcup-dyndns:
        image: b2un0/netcup-dyndns:latest
        restart: unless-stopped
        container_name: netcup-dyndns
        network_mode: host # necessary for ipv6!
        environment:
            SCHEDULE: "*/10 * * * *" # https://crontab.guru/
            DOMAIN: "nas.domain.tld"
            MODE: "both" # can be "@", "*" or "both"
            IPV4: "yes"
            IPV6: "yes"
            TTL: "300" # 0 or remove if zone ttl should not change
            CUSTOMER_ID: "<customerId>"
            API_KEY: "<apiKey>"
            API_PASSWORD: "<apiPassword>"

run without docker

via wrapper.php (or some other script name)

<?php

$_ENV['DOMAIN'] = 'nas.domain.tld';
$_ENV['MODE'] = 'both';  # can be "@", "*" or "both"

$_ENV['CUSTOMER_ID'] = '<customerId>';
$_ENV['API_KEY'] = '<apiKey>';
$_ENV['API_PASSWORD'] = '<apiPassword>';

$_ENV['TTL'] = 300; # 0 or remove if zone ttl should not change

$_ENV['IPV4'] = 'yes';
$_ENV['IPV6'] = 'no';

$_ENV['FORCE'] = 'no';

require 'updater.php';

References

License

Published under GNU General Public License v3.0

About

Netcup DNS API DynDNS Docker Client

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 94.4%
  • Dockerfile 3.1%
  • Shell 2.5%