Skip to content

DDNS with cloudflare and cloudflare-ddns

Published: at 03:00 AM

1. Installation

2. Cloudflare API Token

3. Cloudflare zone-id

4. Configuration of cloudflare-ddns

cd ~/cloudflare-ddns
cp config-example.json config.json
{
  "cloudflare": [
    {
      "authentication": {
        "api_token": "api_token_here",
        "api_key": {
          "api_key": "api_key_here",
          "account_email": "your_email_here"
        }
      },
      "zone_id": "your_zone_id_here",
      "subdomains": [
        {
          "name": "",
          "proxied": false
        },
        {
          "name": "remove_or_replace_with_your_subdomain",
          "proxied": false
        }
      ]
    }
  ],
  "a": true,
  "aaaa": true,
  "purgeUnknownRecords": false,
  "ttl": 300
}

my config.json:

{
  "cloudflare": [
    {
      "authentication": {
        "api_token": "put your token here"
      },
      "zone_id": "put your zone_id here",
      "subdomains": [
        {
          "name": "home",
          "proxied": false
        }
      ]
    }
  ],
  "a": true,
  "aaaa": true,
  "purgeUnknownRecords": false,
  "ttl": 300
}

5. Verification

Note