Cloudflare-DDNS-Script/cloudflare-dns-update.conf
2024-11-18 22:38:28 +01:00

16 lines
654 B
Text

zoneid="your_cloudflare_zone_id"
cloudflare_zone_api_token="your_cloudflare_api_token"
# "DOMAIN,TTL,PROXY" ==> "google.com,3600,true"
dns_record=(
"example.com,3600,true"
"sub1.example.com,1,true"
"sub2.example.com,1,false"
"sub3.example.com,120,true"
"sub4.example.com,,"
) # Automatic TTL = 1 , TTL and Proxy dont set ==> TTL = 1 and PROXY=true
ttl=1 # Or any value between 120 and 7200 (1 for automatic)
proxied=false # Or true
notify_me_telegram="no" # Or "yes"
telegram_bot_API_Token="your_telegram_bot_token" # If using Telegram notifications
telegram_chat_id="your_telegram_chat_id" # If using Telegram notifications