Updated script so if the record doesn't exist, it will create it. Updated env file

This commit is contained in:
2025-10-05 21:06:48 +01:00
parent 090c205946
commit 1eb4d13de9
2 changed files with 117 additions and 41 deletions
@@ -1,5 +1,5 @@
ZONE_ID="abc123zoneid"
DNS_RECORD_ID="def456recordid"
DNS_NAME="subdomain.example.com"
CLOUDFLARE_EMAIL="you@example.com"
CLOUDFLARE_API_KEY="your_api_key_here"
DNS_NAME="subdomain.example.com"