This is an old revision of the document!
Similar listings found on The Internet:
https://bushart.org/resource/public-ip-using-dns/
https://52.0.56.137.sslip.io/
https://sysop.user.uucp.hu/programs/doc/extip.txt
Publicly available resources to check:
myv4="$(curl -4 -s https://www.ipv4.balug.org/myip)" myv6="$(curl -6 -s https://www.ipv6.balug.org/myip)" control_M="$(printf '\015')" for path in \ ifconfig.co/ \ dafuqismyip.com/ \ whatismyip.akamai.com/ \ {,ipv4.,ipv6.}icanhazip.com/ \ ipchicken.com/ \ www.moanmyip.com/ \ whatsmyfuckingip.com/ \ wtfismyip.com/text \ ifconfig.io/ \ ipinfo.io/ip \ ifconfig.me/ \ ip.me/ \ ipecho.net/plain \ {,ipv{4,6}.}balug.org/myip \ api.ipify.org/ \ {,ipv{4,6}.}pry.sh/ \ {self{,6}.ip,myipv{4,6}}.addr.tools/ \ myip.wtf/text \ echoip.xyz/ do for scheme in http https do for v in 4 6 do case "$v" in 4) myip="$myv4" ;; 6) myip="$myv6" ;; esac curlopts="-"$v" -m 15 -s" r=$(curl $curlopts "$scheme://$path") case "$r" in "$myip") echo "\$ curl $curlopts $scheme://$path" echo $r ;; "$myip$control_M") echo "\$ curl $curlopts $scheme://$path" echo $myip'^M' ;; *"$myip"*) echo "\$ curl $curlopts $scheme://$path" echo $myip found in text ;; *) myRE=$( echo "$myip" | sed -e 's/[.:]/-/g' ) printf '%s' "$r" | if grep "$myRE" >>/dev/null; then echo "\$ curl $curlopts $scheme://$path" echo $myip found in text in alternative format elif [ "$scheme" = https ]; then curlopts="-$v -k -m 15 -s" r=$(curl $curlopts "$scheme://$path") case "$r" in "$myip") echo "\$ curl $curlopts $scheme://$path # (https cert issue)" echo $r ;; "$myip$control_M") echo "\$ curl $curlopts $scheme://$path # (https cert issue)" echo $myip'^M' ;; *"$myip"*) echo "\$ curl $curlopts $scheme://$path # (https cert issue)" echo $myip found in text ;; *) myRE=$( echo "$myip" | sed -e 's/[.:]/-/g' ) printf '%s' "$r" | grep "$myRE" >>/dev/null && { echo "\$ curl $curlopts $scheme://$path" echo $myip found in text in alternative format } ;; esac fi ;; esac done done done; echo '$ ' $ curl -4 -m 15 -s http://ifconfig.co/ 96.86.170.226 $ curl -6 -m 15 -s http://ifconfig.co/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ifconfig.co/ 96.86.170.226 $ curl -6 -m 15 -s https://ifconfig.co/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://dafuqismyip.com/ 96.86.170.226^M $ curl -6 -m 15 -s https://dafuqismyip.com/ 2001:470:67:76f::2^M $ curl -4 -m 15 -s http://whatismyip.akamai.com/ 96.86.170.226 $ curl -4 -m 15 -s http://icanhazip.com/ 96.86.170.226 $ curl -6 -m 15 -s http://icanhazip.com/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://icanhazip.com/ 96.86.170.226 $ curl -6 -m 15 -s https://icanhazip.com/ 2001:470:67:76f::2 $ curl -4 -m 15 -s http://ipv4.icanhazip.com/ 96.86.170.226 $ curl -4 -m 15 -s https://ipv4.icanhazip.com/ 96.86.170.226 $ curl -6 -m 15 -s http://ipv6.icanhazip.com/ 2001:470:67:76f::2 $ curl -6 -m 15 -s https://ipv6.icanhazip.com/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ipchicken.com/ 96.86.170.226 found in text $ curl -4 -m 15 -s https://www.moanmyip.com/ 96.86.170.226 found in text $ curl -6 -m 15 -s https://www.moanmyip.com/ 2001:470:67:76f::2 found in text $ curl -4 -m 15 -s https://whatsmyfuckingip.com/ 96.86.170.226 found in text $ curl -4 -m 15 -s http://wtfismyip.com/text 96.86.170.226 $ curl -6 -m 15 -s http://wtfismyip.com/text 2001:470:67:76f::2 $ curl -4 -m 15 -s https://wtfismyip.com/text 96.86.170.226 $ curl -6 -m 15 -s https://wtfismyip.com/text 2001:470:67:76f::2 $ curl -4 -m 15 -s http://ifconfig.io/ 96.86.170.226 $ curl -6 -m 15 -s http://ifconfig.io/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ifconfig.io/ 96.86.170.226 $ curl -6 -m 15 -s https://ifconfig.io/ 2001:470:67:76f::2 $ curl -4 -m 15 -s http://ipinfo.io/ip 96.86.170.226 $ curl -4 -m 15 -s https://ipinfo.io/ip 96.86.170.226 $ curl -4 -m 15 -s http://ifconfig.me/ 96.86.170.226 $ curl -6 -m 15 -s http://ifconfig.me/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ifconfig.me/ 96.86.170.226 $ curl -6 -m 15 -s https://ifconfig.me/ 2001:470:67:76f::2 $ curl -4 -m 15 -s http://ip.me/ 96.86.170.226 $ curl -6 -m 15 -s http://ip.me/ 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ip.me/ 96.86.170.226 $ curl -6 -m 15 -s https://ip.me/ 2001:470:67:76f::2 $ curl -4 -m 15 -s http://ipecho.net/plain 96.86.170.226 $ curl -6 -m 15 -s http://ipecho.net/plain 2001:470:67:76f::2 $ curl -4 -m 15 -s https://ipecho.net/plain 96.86.170.226 $ curl -6 -m 15 -s https://ipecho.net/plain 2001:470:67:76f::2 $ curl -4 -m 15 -s http://www.balug.org/myip 96.86.170.226 $ curl -6 -m 15 -s http://www.balug.org/myip 2001:470:67:76f::2 $ curl -4 -m 15 -s https://www.balug.org/myip 96.86.170.226 $ curl -6 -m 15 -s https://www.balug.org/myip 2001:470:67:76f::2 $ curl -4 -m 15 -s http://www.ipv4.balug.org/myip 96.86.170.226 $ curl -4 -m 15 -s https://www.ipv4.balug.org/myip 96.86.170.226 $ curl -6 -m 15 -s http://www.ipv6.balug.org/myip 2001:470:67:76f::2 $ curl -6 -m 15 -s https://www.ipv6.balug.org/myip 2001:470:67:76f::2 $ curl -4 -m 15 -s http://api.ipify.org/ 96.86.170.226 $ curl -4 -m 15 -s https://api.ipify.org/ 96.86.170.226 $ curl -4 -m 15 -s http://pry.sh/ 96.86.170.226 found in text $ curl -6 -m 15 -s http://pry.sh/ 2001:470:67:76f::2 found in text $ curl -4 -m 15 -s https://pry.sh/ 96.86.170.226 found in text $ curl -6 -m 15 -s https://pry.sh/ 2001:470:67:76f::2 found in text $ curl -4 -m 15 -s http://ipv4.pry.sh/ 96.86.170.226 found in text $ curl -4 -m 15 -s https://ipv4.pry.sh/ 96.86.170.226 found in text $ curl -6 -m 15 -s http://ipv6.pry.sh/ 2001:470:67:76f::2 found in text $ curl -6 -m 15 -s https://ipv6.pry.sh/ 2001:470:67:76f::2 found in text $ curl -4 -m 15 -s http://self.ip.addr.tools/ 96.86.170.226 found in text in alternative format $ curl -4 -m 15 -s https://self.ip.addr.tools/ 96.86.170.226 found in text in alternative format $ curl -6 -m 15 -s http://self6.ip.addr.tools/ 2001:470:67:76f::2 found in text in alternative format $ curl -6 -m 15 -s https://self6.ip.addr.tools/ 2001:470:67:76f::2 found in text in alternative format $ curl -4 -m 15 -s http://myipv4.addr.tools/ 96.86.170.226 $ curl -4 -m 15 -s https://myipv4.addr.tools/ 96.86.170.226 $ curl -6 -m 15 -s http://myipv6.addr.tools/ 2001:470:67:76f::2 $ curl -6 -m 15 -s https://myipv6.addr.tools/ 2001:470:67:76f::2 $ curl -4 -m 15 -s http://myip.wtf/text 96.86.170.226 $ curl -6 -m 15 -s http://myip.wtf/text 2001:470:67:76f::2 $ curl -4 -m 15 -s https://myip.wtf/text 96.86.170.226 $ curl -6 -m 15 -s https://myip.wtf/text 2001:470:67:76f::2 $ for ns_rr_types in \ 'ns1.google.com. o-o.myaddr.l.google.com. TXT' \ 'resolver1.opendns.com. myip.opendns.com. A AAAA' \ 'ns.sslip.io. ip.sslip.io. TXT' \ 'ns1-1.akamaitech.net. whoami.akamai.net. A' \ 'dns.toys ip. TXT' do set -- $ns_rr_types; NS="$1"; shift; RR="$1"; shift; TYPES="$*" query= for TYPE in $TYPES do query="${query:+$query }$RR $TYPE" done for v in 4 6 do r=$(dig @"$NS" +short +norecurse -"$v" $query 2>>/dev/null) && [ -n "$r" ] && { echo \$ dig @"$NS" +short +norecurse -"$v" $query echo $r } done : done; echo '$ ' $ dig @ns1.google.com. +short +norecurse -4 o-o.myaddr.l.google.com. TXT "96.86.170.226" $ dig @ns1.google.com. +short +norecurse -6 o-o.myaddr.l.google.com. TXT "2001:470:67:76f::2" $ dig @resolver1.opendns.com. +short +norecurse -4 myip.opendns.com. A myip.opendns.com. AAAA 96.86.170.226 $ dig @resolver1.opendns.com. +short +norecurse -6 myip.opendns.com. A myip.opendns.com. AAAA 2001:470:67:76f::2 $ dig @ns.sslip.io. +short +norecurse -4 ip.sslip.io. TXT "96.86.170.226" $ dig @ns.sslip.io. +short +norecurse -6 ip.sslip.io. TXT "2001:470:67:76f::2" $ dig @ns1-1.akamaitech.net. +short +norecurse -4 whoami.akamai.net. A whoami.ak 96.86.170.226 $ dig @dns.toys +short +norecurse -4 ip. TXT "96.86.170.226" $ dig @dns.toys +short +norecurse -6 ip. TXT "2001:470:67:76f::2" $