[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[public-dns-discuss] Re: Getting external IP in app



My question: may i use "o-o.myaddr.l.google.com" request to google DNS for getting external IP address in my app or this will break terms of using the service?


You shouldn't do this, because it will sometimes return incorrect results due to DNS caching. In any case, the addresses returned from that query are the full address of the DNS resolver at Google (not the user's external IP address) and the subnet (/24 for IPv4 or /56 for IPv6) of the client's external IP address. It does not report the full client IP address

You should use an external IP reporting service like https://icanhazip.com (which supports IPv6) or if you really want to use Google, use this: https://www.google.com/search?q=external+ip+lookup

--
You received this message because you are subscribed to the Google Groups "public-dns-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to public-dns-discuss+unsubscribe AT googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/public-dns-discuss/7cfac89b-4bf6-4c37-ba98-2883cf552a01%40googlegroups.com.