Skip to content

robotman4/cloudflare-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare DDNS

Overview

This self-hosted service allows you to perform Dynamic DNS (DDNS) updates using Cloudflare as your DNS provider. You can add, update, and list domains with their associated IP addresses, making it easy to keep your DNS records up to date with changing IP addresses.

Why I Created This Service

I developed this service to solve the common problem of keeping DNS records synchronized with dynamic IP addresses. With the increasing number of devices hosted on home or small office networks, maintaining accurate DNS records becomes crucial for remote access and service accessibility.
This service provides a lightweight and self-hosted solution that integrates seamlessly with Cloudflare, a popular DNS service provider, ensuring that your domains' IP addresses are always up to date.

How to Use

Follow these instructions to get started with the Python Cloudflare DDNS Service. Recommended to use behind a proxy such as Traefik.

Prerequisites

Before you begin, make sure you have the following prerequisites in place:

  • Docker installed.
  • A Cloudflare account with an API token. You can create a token in your Cloudflare account settings.
  • You need to create A type records before you can update them.

Installation

  1. Start using the included compose.yml:
    docker compose up -d
  2. Add a domain to the database via:
    curl -u "user:pass" https://ddns.example.com/add_domain?domain=sub.example.com
  3. Copy the provided token and call an update:
    curl https://ddns.example.com/update?domain=sub.example.com&ip=127.0.0.1&token=tokenprovidedfrombefore
  4. To list domains and tokens:
    curl -u "user:pass" https://ddns.example.com/list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published