docker-ownDynDNS-netcup/README.md

49 lines
1.5 KiB
Markdown
Raw Normal View History

2024-07-26 21:22:37 +02:00
# docker-ownDynDNS-netcup
2024-05-30 23:04:58 +02:00
2024-07-26 21:22:37 +02:00
- [docker-ownDynDNS-netcup](#docker-owndyndns-netcup)
2024-05-30 23:23:56 +02:00
- [acknowledgments](#acknowledgments)
2024-06-09 19:57:26 +02:00
- [Netcup configuration](#netcup-configuration)
2024-05-30 23:23:56 +02:00
- [Container configuration](#container-configuration)
- [Fritz!Box configuration](#fritzbox-configuration)
2024-05-30 23:04:58 +02:00
2024-05-30 23:23:56 +02:00
## acknowledgments
2024-05-30 23:04:58 +02:00
This container is based on the work of:
* [PHP](https://hub.docker.com/_/php)
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
2024-06-09 19:57:26 +02:00
## Netcup configuration
2024-05-30 23:04:58 +02:00
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
2024-05-30 23:23:56 +02:00
# Create config, copy the contents from repository example.config and change the parameters
2024-05-30 23:04:58 +02:00
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