system:what_is_my_ip_address
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
system:what_is_my_ip_address [2023-03-30T07:53:25+0000] – ifconfig.me - IPv6 michael_paoli | system:what_is_my_ip_address [2025-04-17T12:52:22+0000] (current) – minor format tweak michael_paoli | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== What's my source IP as seen from The Internet? ====== | ====== What's my source IP as seen from The Internet? ====== | ||
+ | |||
+ | Similar listings, etc. found on The Internet:\\ | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
Publicly available resources to check:\\ | Publicly available resources to check:\\ | ||
- | ^http 80 ^https 443 ^ IPv ^^ DNS \\ 53 ^notes | + | ^http 80 ^https 443 ^ IPv ^^ DNS \\ 53 |
- | ^ ::: ^ ::: ^ 4 ^ 6 ^ ::: | + | ^ ::: ^ ::: ^ 4 ^ 6 ^ ::: |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |- |- | 4 | 6 | y | + | |[[http:// |
- | |[[http:// | + | |- |- | 4 | - | U |
- | |- |- | 4 | 6 | y | + | |- |- | 4 | 6 | y |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |- |- |
- | |[[http:// | + | |[[http:// |
- | |[[http:// | + | |[[http:// |
- | |- |- | 4 | - | | + | |[[http:// |
- | |[[http://echoip.xyz/]]* | + | |[[http:// |
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |- | ||
+ | |[[http:// | ||
+ | |- |- | 4 | 6 | - | ||
+ | |[[http:// | ||
+ | |- |- | 4 | 6 | - | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |- | 4 | 6 | y | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |- | 4 | - | U | ||
+ | |- |- | 4 | 6 | y | ||
+ | |- |- | 4 | - | y | ||
+ | |- |- | - | 6 | y | ||
+ | |- |- | 4 | - | y | ||
+ | |[[https:// | ||
+ | |[[https:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |[[https:// | ||
+ | |- |[[https:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |- | 4 | 6 | y | ||
+ | |[[http:// | ||
+ | | | ||
+ | |[[http:// | ||
+ | | | ||
+ | |[[http:// | ||
+ | | | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[https:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |- |- | 4 | 6 | U | ||
+ | |[[http://myip.wtf/text]] | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |[[http:// | ||
+ | |||
+ | ===== Notes: ===== | ||
+ | |||
+ | May/ | ||
+ | ip4.me, ip4only.me \\ | ||
+ | ip6addr.com, | ||
+ | ip6.me, ip6only.me \\ | ||
+ | ipv6addr.com, | ||
+ | onlyip4.me, onlyip6.me \\ | ||
+ | whatismyipv6address.com, | ||
+ | whatismyv6.com, | ||
+ | per\\ | ||
+ | https:// | ||
+ | https:// | ||
+ | etc. | ||
+ | |||
+ | I'm hoping/ | ||
+ | and also includes ability to programmatically accept submissions/ | ||
+ | Thus far it's still a work-in-progress. | ||
===== Example Usage: ===== | ===== Example Usage: ===== | ||
+ | |||
+ | ==== http/https ==== | ||
< | < | ||
+ | myv4=" | ||
+ | myv6=" | ||
+ | control_M=" | ||
for path in \ | for path in \ | ||
+ | 1.1.1.1/ | ||
ifconfig.co/ | ifconfig.co/ | ||
- | icanhazip.com/ | + | |
+ | dafuqismyip.com/ | ||
+ | {, | ||
+ | ipchicken.com/ | ||
+ | www.moanmyip.com/ | ||
+ | myexternalip.com/ | ||
+ | simplesniff.com/ | ||
+ | wgetip.com/ \ | ||
+ | whatsmyfuckingip.com/ | ||
+ | wtfismyip.com/ | ||
+ | ifconfig.io/ \ | ||
ipinfo.io/ | ipinfo.io/ | ||
+ | ident.me \ | ||
ifconfig.me/ | ifconfig.me/ | ||
+ | ip.me/ \ | ||
+ | ip{4, | ||
+ | ipecho.net/ | ||
+ | tnx.nl/ip \ | ||
+ | ip.tyk.nu/ \ | ||
+ | corz.org/ip \ | ||
+ | {, | ||
api.ipify.org/ | api.ipify.org/ | ||
- | | + | |
- | | + | {, |
- | | + | |
+ | myip.wtf/text | ||
do | do | ||
for scheme in http https | for scheme in http https | ||
Line 39: | Line 192: | ||
for v in 4 6 | for v in 4 6 | ||
do | do | ||
- | | + | |
- | | + | 4) |
- | echo "\$ curl -s -$v $scheme:// | + | myip="$myv4" |
- | echo $r | + | ;; |
- | elif [ " | + | 6) |
- | r=$(curl -k -s -"$v" | + | myip=" |
- | expr x" | + | ;; |
- | | + | esac |
- | echo "\$ curl -k -s -$v $scheme:// | + | curlopts=" |
- | echo $r; | + | r=$(curl $curlopts |
- | } | + | |
- | fi | + | " |
+ | echo "\$ curl $curlopts $scheme:// | ||
+ | echo $r | ||
+ | ;; | ||
+ | " | ||
+ | echo "\$ curl $curlopts $scheme:// | ||
+ | echo $myip'^M' | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ curl $curlopts $scheme:// | ||
+ | echo $myip found in text | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | echo " | ||
+ | sed -e 's/[.:]/-/g' | ||
+ | ) | ||
+ | printf ' | ||
+ | if grep " | ||
+ | echo "\$ curl $curlopts | ||
+ | echo $myip found in text in alternative format | ||
+ | elif [ " | ||
+ | | ||
+ | r=$(curl $curlopts | ||
+ | | ||
+ | " | ||
+ | echo "\$ curl $curlopts $scheme://$path # (https cert issue)" | ||
+ | echo $r | ||
+ | ;; | ||
+ | " | ||
+ | echo "\$ curl $curlopts $scheme:// | ||
+ | echo $myip'^M' | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ curl $curlopts $scheme:// | ||
+ | echo $myip found in text | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | echo " | ||
+ | sed -e 's/[.:]/-/g' | ||
+ | ) | ||
+ | printf ' | ||
+ | grep " | ||
+ | echo "\$ curl $curlopts | ||
+ | echo $myip found in text in alternative format | ||
+ | } | ||
+ | ;; | ||
+ | esac | ||
+ | | ||
+ | ;; | ||
+ | esac | ||
done | done | ||
done | done | ||
done; echo '$ ' | done; echo '$ ' | ||
- | $ curl -s -4 http:// | + | $ curl -4 -m 15 -s https:// |
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s http:// | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -6 http:// | + | $ curl -6 -m 15 -s http:// |
2001: | 2001: | ||
- | $ curl -s -4 https:// | + | $ curl -4 -m 15 -s https:// |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -6 https:// | + | $ curl -6 -m 15 -s https:// |
2001: | 2001: | ||
- | $ curl -s -4 http://icanhazip.com/ | + | $ curl -4 -m 15 -s http://whatismyip.akamai.com/ |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -6 http:// | + | $ curl -4 -k -m 15 -s https:// |
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226^M | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
2001: | 2001: | ||
- | $ curl -s -4 https:// | + | $ curl -4 -m 15 -s https:// |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -6 https:// | + | $ curl -6 -m 15 -s https:// |
2001: | 2001: | ||
- | $ curl -s -4 http://ipinfo.io/ip | + | $ curl -4 -m 15 -s http://ipv4.icanhazip.com/ |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 https://ipinfo.io/ip | + | $ curl -4 -m 15 -s https://ipv4.icanhazip.com/ |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 http://ifconfig.me/ | + | $ curl -6 -m 15 -s http:// |
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http://myexternalip.com/raw | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 https://ifconfig.me/ | + | $ curl -6 -m 15 -s http:// |
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https://myexternalip.com/raw | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 http://api.ipify.org/ | + | $ curl -6 -m 15 -s https:// |
+ | 2001: | ||
+ | $ curl -4 -k -m 15 -s https://simplesniff.com/ip # (https cert issue) | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 https://api.ipify.org/ | + | $ curl -4 -m 15 -s http://wgetip.com/ |
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 https://echoip.xyz/ | + | $ curl -6 -m 15 -s http:// |
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https://wgetip.com/ | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -s -4 http://whatismyip.akamai.com/ | + | $ curl -6 -m 15 -s https:// |
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https://whatsmyfuckingip.com/ | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s http:// | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ curl -k -s -4 https://whatismyip.akamai.com/ | + | $ curl -6 -m 15 -s http:// |
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https://wtfismyip.com/text | ||
96.86.170.226 | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 found in text in alternative format | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 found in text in alternative format | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s http:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s http:// | ||
+ | 2001: | ||
+ | $ curl -4 -m 15 -s https:// | ||
+ | 96.86.170.226 | ||
+ | $ curl -6 -m 15 -s https:// | ||
+ | 2001: | ||
$ | $ | ||
+ | </ | ||
- | for ns_rr_t_t2 | + | ==== DNS ==== |
- | ' | + | |
- | ' | + | < |
- | ' | + | myv4=" |
+ | myv6=" | ||
+ | control_M=" | ||
+ | # | ||
+ | digopts=' | ||
+ | for ns_rr_class_types | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
do | do | ||
- | set -- $ns_rr_t_t2; | + | set -- $ns_rr_class_types |
- | | + | |
- | for v in 4 6 | + | |
do | do | ||
- | r=$(dig @" | + | |
- | | + | for v in 4 6 |
- | echo \$ dig @" | + | do |
- | echo $r | + | case " |
- | | + | 4) |
+ | myip=" | ||
+ | ;; | ||
+ | 6) | ||
+ | myip=" | ||
+ | ;; | ||
+ | esac | ||
+ | | ||
+ | case " | ||
+ | \"" | ||
+ | echo "\$ dig @" | ||
+ | echo $r | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ dig @" | ||
+ | printf 'found in text:\n%s\n' | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | echo " | ||
+ | sed -e 's/[.:]/ | ||
+ | ) | ||
+ | printf ' | ||
+ | if grep " | ||
+ | echo "\$ dig @" | ||
+ | echo $myip found in text in alternative format | ||
+ | fi | ||
+ | ;; | ||
+ | esac | ||
+ | r=$(dig @" | ||
+ | | ||
+ | \"" | ||
+ | | ||
+ | echo $r | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ dig @" | ||
+ | | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | | ||
+ | sed -e ' | ||
+ | ) | ||
+ | printf ' | ||
+ | if grep " | ||
+ | echo "\$ dig @" | ||
+ | echo $myip found in text in alternative format | ||
+ | fi | ||
+ | ;; | ||
+ | esac | ||
+ | | ||
done | done | ||
- | : | ||
done; echo '$ ' | done; echo '$ ' | ||
- | + | $ dig @1.1.1.1 +short +norecurse -4 whoami.cloudflare | |
- | $ dig @ns1.google.com. +short +norecurse -4 o-o.myaddr.l.google.com. TXT | + | |
" | " | ||
- | $ dig @ns1.google.com. +short +norecurse -6 o-o.myaddr.l.google.com. TXT | + | $ dig @1.1.1.1 +tcp +short +norecurse -4 whoami.cloudflare TXT CH |
+ | " | ||
+ | $ dig @ns1.google.com. +short +norecurse -4 o-o.myaddr.l.google.com. TXT IN | ||
+ | " | ||
+ | $ dig @ns1.google.com. +tcp +short +norecurse -4 o-o.myaddr.l.google.com. TXT IN | ||
+ | " | ||
+ | $ dig @ns1.google.com. +short +norecurse -6 o-o.myaddr.l.google.com. TXT IN | ||
" | " | ||
- | $ dig @resolver1.opendns.com. +short +norecurse -4 myip.opendns.com. | + | $ dig @ns1.google.com. +tcp +short +norecurse -6 o-o.myaddr.l.google.com. TXT IN |
+ | " | ||
+ | $ dig @resolver1.opendns.com. | ||
96.86.170.226 | 96.86.170.226 | ||
- | $ dig @resolver1.opendns.com. +short +norecurse -6 myip.opendns.com. A myip.opendns.com. AAAA | + | $ dig @resolver1.opendns.com. |
+ | 96.86.170.226 | ||
+ | $ dig @resolver1.opendns.com. +short +norecurse -6 myip.opendns.com. AAAA IN | ||
2001: | 2001: | ||
- | $ dig @dns.toys +short +norecurse -4 ip. TXT | + | $ dig @resolver1.opendns.com. +tcp +short +norecurse -6 myip.opendns.com. AAAA IN |
+ | 2001: | ||
+ | $ dig @ns.sslip.io. +short +norecurse -4 ip.sslip.io. TXT IN | ||
" | " | ||
+ | $ dig @ns.sslip.io. +tcp +short +norecurse -4 ip.sslip.io. TXT IN | ||
+ | " | ||
+ | $ dig @ns.sslip.io. +short +norecurse -6 ip.sslip.io. TXT IN | ||
+ | " | ||
+ | $ dig @ns.sslip.io. +tcp +short +norecurse -6 ip.sslip.io. TXT IN | ||
+ | " | ||
+ | $ dig @update.dynamic.name. +short +norecurse -4 my.dynamic.name. A IN | ||
+ | 96.86.170.226 | ||
+ | $ dig @ns1-1.akamaitech.net. +short +norecurse -4 whoami.akamai.net. A IN | ||
+ | 96.86.170.226 | ||
+ | $ dig @ns1-1.akamaitech.net. +tcp +short +norecurse -4 whoami.akamai.net. A IN | ||
+ | 96.86.170.226 | ||
+ | $ dig @one.one.one.one. +short +norecurse -4 whoami.cloudflare. TXT CH | ||
+ | " | ||
+ | $ dig @one.one.one.one. +tcp +short +norecurse -4 whoami.cloudflare. TXT CH | ||
+ | " | ||
+ | $ dig @one.one.one.one. +short +norecurse -6 whoami.cloudflare. TXT CH | ||
+ | " | ||
+ | $ dig @one.one.one.one. +tcp +short +norecurse -6 whoami.cloudflare. TXT CH | ||
+ | " | ||
+ | $ dig @dns.toys +short +norecurse -4 ip. TXT IN | ||
+ | " | ||
+ | $ dig @dns.toys +short +norecurse -6 ip. TXT IN | ||
+ | " | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | ==== ssh ==== | ||
+ | |||
+ | < | ||
+ | myv4=" | ||
+ | myv6=" | ||
+ | control_M=" | ||
+ | for userathost in \ | ||
+ | sshmyip.com myip@{, | ||
+ | do | ||
+ | for v in 4 6 | ||
+ | do | ||
+ | case " | ||
+ | 4) | ||
+ | myip=" | ||
+ | ;; | ||
+ | 6) | ||
+ | myip=" | ||
+ | ;; | ||
+ | esac | ||
+ | sshopts=" | ||
+ | r=$(ssh $sshopts $userathost 2>>/ | ||
+ | case " | ||
+ | " | ||
+ | echo "\$ ssh -$v $userathost" | ||
+ | echo $r | ||
+ | ;; | ||
+ | " | ||
+ | echo "\$ ssh -$v $userathost" | ||
+ | echo $myip' | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ ssh -$v $userathost" | ||
+ | echo $myip found in text | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | echo " | ||
+ | sed -e ' | ||
+ | ) | ||
+ | printf ' | ||
+ | if grep " | ||
+ | echo "\$ ssh -$v $userathost" | ||
+ | echo $myip found in text in alternative format | ||
+ | fi | ||
+ | ;; | ||
+ | esac | ||
+ | done | ||
+ | done; echo '$ ' | ||
+ | $ ssh -4 sshmyip.com | ||
+ | 96.86.170.226 found in text | ||
+ | $ ssh -6 sshmyip.com | ||
+ | 2001: | ||
+ | $ ssh -4 myip@balug.org | ||
+ | 96.86.170.226 | ||
+ | $ ssh -6 myip@balug.org | ||
+ | 2001: | ||
+ | $ ssh -4 myip@ipv4.balug.org | ||
+ | 96.86.170.226 | ||
+ | $ ssh -6 myip@ipv6.balug.org | ||
+ | 2001: | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | ==== telnet ==== | ||
+ | |||
+ | < | ||
+ | myv4=" | ||
+ | myv6=" | ||
+ | control_M=" | ||
+ | for domain in \ | ||
+ | telnetmyip.com | ||
+ | do | ||
+ | for v in 4 6 | ||
+ | do | ||
+ | case " | ||
+ | 4) | ||
+ | myip=" | ||
+ | ;; | ||
+ | 6) | ||
+ | myip=" | ||
+ | ;; | ||
+ | esac | ||
+ | telnetopts=" | ||
+ | r=$(sleep 2 | telnet $telnetopts $domain 2>>/ | ||
+ | case " | ||
+ | " | ||
+ | echo "\$ telnet -$v $domain" | ||
+ | echo $r | ||
+ | ;; | ||
+ | " | ||
+ | echo "\$ telnet -$v domain" | ||
+ | echo $myip' | ||
+ | ;; | ||
+ | *" | ||
+ | echo "\$ telnet -$v $domain" | ||
+ | echo $myip found in text | ||
+ | ;; | ||
+ | *) | ||
+ | myRE=$( | ||
+ | echo " | ||
+ | sed -e ' | ||
+ | ) | ||
+ | printf ' | ||
+ | if grep " | ||
+ | echo "\$ telnet -$v $domain" | ||
+ | echo $myip found in text in alternative format | ||
+ | fi | ||
+ | ;; | ||
+ | esac | ||
+ | done | ||
+ | done; echo '$ ' | ||
+ | $ telnet -4 telnetmyip.com | ||
+ | 96.86.170.226 found in text | ||
+ | $ telnet -6 telnetmyip.com | ||
+ | 2001: | ||
$ | $ | ||
</ | </ |
system/what_is_my_ip_address.1680162805.txt.bz2 · Last modified: 2023-03-30T07:53:25+0000 by michael_paoli