Skip to content

Instantly share code, notes, and snippets.

Avatar

SamyWee samywee

View GitHub Profile
@samywee
samywee / cloudflare-update-record.sh
Last active Sep 2, 2019 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
proxy_state="true"
# MAYBE CHANGE THESE
You can’t perform that action at this time.