new dynv6 script, along with minor updates to public ip scripts.

heavily based on https://gist.github.com/corny/7a07f5ac901844bd20c9
This commit is contained in:
2023-09-20 13:30:22 -04:00
parent caa95e64d8
commit df1bbb2a41
3 changed files with 91 additions and 5 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
#!/bin/bash
# does not always work, when you have an IPv6 connection
#dig +short A myip.opendns.com @resolver1.opendns.com
# works consistently if you specify the -4 to force IPv4
dig -4 +short A myip.opendns.com @resolver1.opendns.com
curl https://ipinfo.io/ip
echo ""
#curl --fail --silent --show-error https://ipinfo.io/ip
#echo ""