docker-ownDynDNS-netcup/README.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

2024-05-30 23:04:58 +02:00
# ownDynDNS-netcup
![docker-build](https://github.com/sujiba/ownDynDNS-netcup/actions/workflows/docker_build_push.yml/badge.svg?event=push)
This container is based on the work of:
* [PHP](https://hub.docker.com/_/php)
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
## Nectup configuration
You need to create your dns entries beforehand:
| Host | Type | Destination |
|----------|-------|--------------|
| vpn | AAAA | IPv6 |
| vpn | A | IPv4 |
## Container configuration
Create docker-compose.yml and config in your app directory i.e.:
```
mkdir -p /opt/docker/owndyndns
cd /opt/docker/owndyndns
# Create docker-compose.yml and copy the contents from repository file
vi docker-compose.yml
# Create config, copy the contents from repository file and change the parameters
vi config
# Start the Container with
docker compose up -d
```
## Fritz!Box configuration
* Login to your Fritz!Box
* Go to /Internet/Freigabe/DynDNS
* Set mark on "DynDNS benutzen"
* Enter Update-URL: `https://<url of your webspace>/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>`
* You only have to change `https://<url of your webspace>` (http without valid TLS certificate)
* Domainname: `vpn.example.com`
* Username: Defined in config
* Password: Defined in config