Skip to content

Instantly share code, notes, and snippets.

@klaeufer
Created February 16, 2024 18:30
Show Gist options
  • Save klaeufer/0a453ca2ab46b64a61bf373a4e9ecbe7 to your computer and use it in GitHub Desktop.
Save klaeufer/0a453ca2ab46b64a61bf373a4e9ecbe7 to your computer and use it in GitHub Desktop.
Update FreeDNS entry to private IP address on Linux - run manually, on startup, or in cron
#!/bin/bash
PRIVATE_IP=$(ip addr show wlp0s20f3 | grep 'inet ' | awk '{print $2}' | cut -f1 -d'/')
curl https://freedns.afraid.org/dynamic/update.php?MY_FREEDNS_API_KEY\&address=$PRIVATE_IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment