Understand the DDNS Update Logic
masterThe program follows this workflow every period (default 5 minutes):
- Fetch Public IP: Obtains the current public IP address.
- Resolve Record: Performs a DNS lookup for each configured domain to find its current IP.
- Compare & Update:
- If DNS resolution fails: Update the record with the fetched public IP.
- If the public IP is NOT in the resolved addresses: Update the record with the public IP.
- If the public IP matches the resolved address: Skip the update.
Special Case: Cloudflare Proxied Records
For Cloudflare records with proxied: true, DNS resolution returns a Cloudflare server IP instead of your actual IP. In this case, the program compares the fetched public IP against the last known IP stored in updates.json instead of performing a DNS lookup.