timothymiller / cloudflare-ddns

🎉🌩️ Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP!
https://timknowsbest.com/free-dynamic-dns
GNU General Public License v3.0
3.13k stars 329 forks source link

Script bails if a zone doesn't exist #181

Open TheFiZi opened 8 months ago

TheFiZi commented 8 months ago

Describe the bug I recently got rid of two of my domains and forgot to update my config.json. When cloudflare-ddns had to fire because my IP changed it hit the first zone in the configuration file, which didn't exist anymore in CF, got an error from the Cloudflare API and stopped processing the remaining domains.

To Reproduce Steps to reproduce the behavior:

  1. Delete a zone from Cloudflare
  2. Run start-sync.sh

Expected behavior Throw an error about the zone not existing anymore in CF and continue processing the rest of the zones in the configuration file.

Screenshots N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context None