3 ms·
Ask HN: How does geolocating with IP addresses work?
There are many publicly available services that post only their IP address
Google, Quad9, and Cloudflare are biggies with 8.8.8.8, 9.9.9.9, and 1.1.1.1
How do they geolocate users so they're doing DNS resolution "locally" instead of from wherever that IP actually points?
- gregjor 3y agohttps://en.wikipedia.org/wiki/Internet_geolocation https://en.wikipedia.org/wiki/Internet_geolocation
- warrenm 3y agoThat does not address the question at all Whereas @incomingpain's answer[0] about anycast does ----------- [0] https://news.ycombinator.com/item?id=37764976 https://news.ycombinator.com/item?id=37764976
- incomingpain 3y agoThey don't geolocate. You setup the DNS servers in various datacenters around the world, then BGP anycast the address. So there are many dns servers with the virtual ip of 8.8.8.8. Then the way bgp works, you will route to the nearest path. Which will tend to be geologically close. https://datatracker.ietf.org/doc/html/rfc1546 https://datatracker.ietf.org/doc/html/rfc1546