Skip to content

Instantly share code, notes, and snippets.

View s-mokrushin's full-sized avatar
🏠
Working from home

Sergey Mokrushin s-mokrushin

🏠
Working from home
View GitHub Profile
@s-mokrushin
s-mokrushin / cloudflare-update-ip.sh
Last active April 28, 2021 18:03
Dynamic DNS updating bash script via Cloudflare API
#!/bin/bash
zoneidentity="put here"
dnsidentity="put here"
authtoken="put here"
domain="put here"
myip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
echo "Detected WAN IP address: ${myip}"