Skip to content

Instantly share code, notes, and snippets.

@Ziltosh
Created November 4, 2022 14:49
Show Gist options
  • Save Ziltosh/10d08575ef223e1f62f62b242d53ef15 to your computer and use it in GitHub Desktop.
Save Ziltosh/10d08575ef223e1f62f62b242d53ef15 to your computer and use it in GitHub Desktop.
[OSX] Shell script to update internetbs dynamic hostname with IPV6
#!/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