Created
February 16, 2024 18:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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