cicoub13 / cloudflare-ddns-updater

Dynamic DNS using Cloudflare DNS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare DNS Updater

Simple Node.js Service to check and update your Cloudfalre DNS records whenever your IP Adreess changes. It will check for your ip address in Cloudfalre and your current ip and update it as provied in fixed intervals.

Features:

  • Supports for A and AAAA
  • Depends on https://www.ipify.org/

Star History

Star History Chart

Usage:

Make a config.json file with all info (in root dir of app).

{
    "auth":{
        // Create a token with Edit DNS permission: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
        "token":"CLOUDFLARE_AUTH_TOKEN",
        "email": "CLOUDFLARE_EMAIL"
    },
    "records": [
        {
            "name":"example.com",
            "type":"A",
            "proxied":false,
            // Open a domain, the ZoneId should be visible on the right panel
            "zoneId":"ZONE_ID_OF_DOMAIN"
        }
    ],
    // In minutes
    "interval": 5
}

Docker Compose

version: '3'

services:
  cloudfalre-updater:
    image: ghcr.io/rohit267/cloudfalre-node-ddns:latest
    container_name: cloudfalre-updater
    restart: unless-stopped
    volumes:
      - ./config.json:/app/config.json
    network_mode: "host"

About

Dynamic DNS using Cloudflare DNS


Languages

Language:JavaScript 94.7%Language:Dockerfile 5.3%