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"