Skip to content

Instantly share code, notes, and snippets.

View Chinory's full-sized avatar
💦
No time to waste

Chinory Chinory

💦
No time to waste
View GitHub Profile
@Chinory
Chinory / cloudflare-update-record.sh
Created May 26, 2019 18:37 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="[email protected]"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)