Dynamic DNS

Time Required

5 Minutes

Difficulty

Easy

Required Knowledge

DNS, Cloudflare, Docker

If you have a dynamic DNS (your IP address changes), you can use a container to keep it in-sync with Cloudflare.

circle-exclamation

Prerequisites

  • Domain managed by Cloudflare

API key

First you will need to generate an API key with write access to your domain/s DNS.

  1. At API tokens, click on 'Create Token'

  2. Select the 'Edit zone DNS' and set the below

    1. Give your token a name, eg "DDNS"

    2. Permissions:

      Zone

      DNS

      Edit

    3. Zone Resources:

      Include

      All Zones (or select specific domains)

  3. Click on 'Continue to Summary'

  4. Click on 'Create token'

  5. Save your API key to your password vault

DDNS Container

Deploy your Docker stack

You can use the below compose file,

https://github.com/trentnbauer/Homelab/blob/main/docker-compose/ddns.yml

Last updated