Skip to content

Instantly share code, notes, and snippets.

View stroebs's full-sized avatar
🕵️
Up in ur networks sniffin' ur packets

Den Stroebel stroebs

🕵️
Up in ur networks sniffin' ur packets
View GitHub Profile
@stroebs
stroebs / cloudflare-update-record.sh
Created April 9, 2016 16:43 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/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"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)