There are many publicly available services that post only their IP address<p>Google, Quad9, and Cloudflare are biggies with 8.8.8.8, 9.9.9.9, and 1.1.1.1<p>How do they geolocate users so they're doing DNS resolution "locally" instead of from wherever that IP <i>actually</i> points?
They don't geolocate. You setup the DNS servers in various datacenters around the world, then BGP anycast the address.<p>So there are many dns servers with the virtual ip of 8.8.8.8.<p>Then the way bgp works, you will route to the nearest path. Which will tend to be geologically close.<p><a href="https://datatracker.ietf.org/doc/html/rfc1546" rel="nofollow noreferrer">https://datatracker.ietf.org/doc/html/rfc1546</a>