Giter Club home page Giter Club logo

cloudflare-ddns's Introduction

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

cloudflare-ddns's People

Watchers

 avatar

cloudflare-ddns's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.