Dynamic DNS (DDNS) Sync Daemon
Auto-SyncDynamic DNS sync daemon that monitors your home/office WAN IP and updates Cloudflare A records automatically.
📖 Full Explanation
Residential and small office internet connections feature dynamic IP addresses that change unpredictably. \1 queries multiple redundant STUN and HTTPS IP echo services, compares your current external IP against your Cloudflare DNS record, and updates it in milliseconds whenever a change occurs.
⚙️ Command Options & Flags
| Option / Flag | Description | Default |
|---|---|---|
| -r, --record <name> | DNS record name to update (e.g. home, vpn) | required |
| -i, --interval <min> | Daemon polling check interval in minutes | 5 |
| --ipv6 | Update AAAA record with public IPv6 address as well | false |
🔬 Technical Corollary & Edge Mechanics
Queries \1 and \1 for external IP discovery. When a change is detected, calls \1 with updated IP and TTL=60 for immediate propagation.
🎯 Real-World DevOps Use Cases
Home Lab & WireGuard VPN Access
Keep your self-hosted VPN or Nextcloud server accessible at \1.
Background Systemd Service
Run as a lightweight background daemon on a Raspberry Pi or home server.
💻 Live Output Simulation
$ cflare ddns sync namishkumar.in --record home ✔ Detected current public WAN IP: 203.0.113.94 ✔ Current DNS record home.namishkumar.in had: 198.51.100.18 ✔ IP change detected! Updating Cloudflare DNS... ✔ Updated home.namishkumar.in -> 203.0.113.94 (TTL: 60s, Proxied: false)