Setting up Cloudflare DDNS on Ubuntu for Dynamic Home IP
title: Setting up Cloudflare DDNS on Ubuntu using cloudflare-ddns-updater date: 2026-03-20 draft: false tags: cloudflare ddns homelab ubuntu automation ๐งฉ Problem My home network uses a dynamic public IP address, which changes periodically. This breaks remote access to my self-hosted services. ๐ ๏ธ Solution Overview I used an open-source tool (cloudflare-ddns-updater) to automatically update my Cloudflare DNS records whenever my public IP changes. ๐ง Environment Ubuntu Server (DDNS host) Cloudflare domain API Token with DNS edit permissions Git installed ๐ Step 1: Create Cloudflare API Token Log in to Cloudflare Go to My Profile โ API Tokens Create a token with: Zone โ DNS โ Edit Zone Resources โ Specific Zone (your domain) Save the token securely. ...