Sign inSign up

cha87de/ddns

By cha87de

•Updated over 7 years ago

Image
0

188

cha87de/ddns repository overview

⁠ddns

Dynamic DNS Service (PHP + Bind)

⁠Usage

docker build -t ddns .
docker run --rm -ti \
    -p 8080:80 \
    -p 553:53 -p 553:53/udp \
    -e DDNS_DOMAIN="testdomain.local" \
    -e DDNS_IPv4="192.168.2.11" \
    -v $(pwd)/example-data:/opt/data/ \
    --name ddns \
    ddns

Where DDNS_DOMAIN is the domain name for the DNS server and DDNS_IPv4 is the IP address for this DNS server. Next, define the dynamic subomains. Update the domains.json file accordingly, e.g. token1 for home.testdomain.local and token2 for office.testdomain.local:

[{
    "home": "token1",
    "office": "token2"
}]

Use the official image on Docker hub, e.g. via docker-compose:

version: '2'
services:
  ddns:
    image: cha87de/ddns:latest
    environment:
    - DDNS_DOMAIN=testdomain.local
    - DDNS_IPv4="192.168.2.2"
    volumes:
    - /opt/storage/ddns/:/opt/data/
    restart: always
    ports:
      - 8080:80
      - 53:53/tcp
      - 53:53/udp

To update the DNS entries, use e.g. curl via curl "https://wherever-it-runs:8080/dnsupdate.php?AUTH_TOKEN=token1&DOMAIN=home[&FORCEIP=192.168.2.101]"

Tag summary

Content type

Image

Digest

Size

122 MB

Last updated

over 7 years ago

docker pull cha87de/ddns