TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How does geolocating with IP addresses work?

1 pointsby warrenmover 1 year ago
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&#x27;re doing DNS resolution &quot;locally&quot; instead of from wherever that IP <i>actually</i> points?

2 comments

incomingpainover 1 year ago
They don&#x27;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:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc1546" rel="nofollow noreferrer">https:&#x2F;&#x2F;datatracker.ietf.org&#x2F;doc&#x2F;html&#x2F;rfc1546</a>
gregjorover 1 year ago
<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Internet_geolocation" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Internet_geolocation</a>
评论 #37765619 未加载