# Self-host DDNS Updater

> Keeps DNS records pointed at your changing public IP for many providers, with a small web page showing each record's status. The install form carries config.json as an editable file, so you add your providers there.

- Page: https://levelrail.com/templates/ddns-updater/
- JSON: https://levelrail.com/templates/ddns-updater.json
- Category: Networking
- Licence: MIT (Permissive license)
- Source: https://github.com/qdm12/ddns-updater
- Upstream docs: https://github.com/qdm12/ddns-updater

## Requirements
- Memory: about 32 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v2.10.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| ddns-updater | ghcr.io/qdm12/ddns-updater | v2.10.0 | 8000 | data -> /updater/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| ddns-updater | CONFIG_FILEPATH | preset |
| ddns-updater | DATADIR | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install ddns-updater --name my-ddns-updater
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain ddns-updater=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/ddns-updater/install \
  -d '{
    "name": "my-ddns-updater"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. The starter config has no providers. Edit the config.json setting, add one entry per record using the provider guides in the project docs, and reinstall or update to apply it.

## Questions

### Can I deploy DDNS Updater on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for DDNS Updater, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/qdm12/ddns-updater:v2.10.0 is what you deploy there.

Self-host DDNS Updater, DDNS Updater docker compose file, deploy DDNS Updater on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
