Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it that the DNS queries from a particular region goes to DNS servers located nearest? How DNS servers are made aware of the geographical location of requesting IP address?

Is that how the CDN works?

share|improve this question

closed as not a real question by Michael Hampton, Dave M, Khaled, Helvick, Scott Pack Feb 3 '13 at 0:56

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

All you need to search is "GeoDNS". Here is some more details on how it works.

share|improve this answer

There are two ways to send the client to the nearest CDN edge location. The first is to have the DNS server return the IP of the nearest location, or to use an HTTP redirect from a central service to the nearest edge location.

There are then two approaches to actually accomplish this. The first is to use a database which maps IP subnets to geographical locations, called IP geolocation. The DNS or HTTP server would lookup the source IP of the request in this database to get a location, and then choose and return the nearest CDN IP or hostname.

The second approach is to use anycast, which only works with DNS. In this case there would be multiple DNS servers (preferably co-located with the CDN edge locations) all operating on the same IP address. DNS requests from clients would get routed to the closest (in the network sense, not geographic) DNS server. Each DNS server would always respond with the same IP, corresponding to the closest CDN edge location to that DNS server.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.