[ root | ruminations | remote ]

Network connection details - What's my IP, what my DNS server?


# https
curl https://checkip.amazonaws.com/
curl https://icanhazip.com/
curl https://ifconfig.me

# http
curl http://whatismyip.akamai.com/

Over DNS

dig IN TXT +short o-o.myaddr.l.google.com @ns1.google.com

dig IN A +short myip.opendns.com @resolver1.opendns.com
# truncate after @ to get the ip of your dns server

myip.opendns.com. 0 IN TXT "Query A or AAAA for your source address as seen by the resolver"