Created
November 4, 2022 14:49
-
-
Save Ziltosh/10d08575ef223e1f62f62b242d53ef15 to your computer and use it in GitHub Desktop.
[OSX] Shell script to update internetbs dynamic hostname with IPV6
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 | |
IP=$(/sbin/ifconfig en0 | awk '/inet6/{print $2}' | tail -1) | |
RETOUR=$(curl "https://dyndns.topdns.com/update?hostname=***DOMAIN***&username=***USERNAME***&password=***PASSWORD***&myip=$IP") | |
echo $RETOUR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment