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:
+4
-4
@@ -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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user