Take, for example, Google. They have a ton of data centers around the world, which I assume handle the traffic for that region. For example, if I am in Athens and go to google.com, I assume that my request doesn’t go all the way to San Francisco. I assume that it goes to a datacenter somewhere in Europe that Google owns. Is that right? If so, how does that work in terms of routing? Do the backbones of Europe have a different listing for Google.com than those of the USA?
the subdomian (www.google.com) is translated into an IP address by what is termed a name server, that IP address is what the internet uses to route your request to google’s servers.
Some name servers do change the response they give based on your location.
Some also give multiple answers and the clients grab one of those answers at random.
So it really depends and is under the control of the person who owns the domain.
I am overly simplifying so please let me know if you want a more in depth answer.
So it’s basically controlled by my ISP or whoever runs the DNS server that my ISP uses? I assume then that there is some guy at each DNS that I can call up and request to have a different IP number assigned to my domain name?
ETA: I thought DNS servers were linked as well. In that, an authorized change in one with propagate through the system.
No it is controlled by the DNS server for the domain you are trying to reach.
DNS servers work on a referral system, there are a limited number of “master” servers who know who is the authorized DNS server for every domain, your ISP’s DNS server will ask those root servers who to ask to find out where to find the destination subdomain.
If you have a domain name the registrar you registered the domain with will be the ones who report the servers to ask for your DNS servers.
I should also say that it gets a lot more complicated than just DNS.
Sometimes the same IP can be used world wide and through using the paths that the IP traffic follows they can have that IP address go to different Data centers based on the source.
Once again, a gross oversimplification.
Here’s a short article that may help: http://www.royans.net/arch/fixing-gslb-global-server-load-balancing/
It’s too short to give you all the answers you’re looking for but maybe it will help add some terminology so you can structure your next set of questions.
Google has lots of data centers. In fact you can be #1 on one data center and #6 on another and #10 on yet another. This is why there are tools that let you compare how well your site comes up in different Google data centers.
Every so often Google syncs the various centers and makes the results uniform. When I did SEO it really bothered my clients are they were like "How come sometimes I’m #1, then I’m #4 then, #1 again. I’d show them Google.Com goes to different IP addresses and it depends on which Google IP it goes to as well as if they data centers are synced up.
There’s also the special case of the F-root, which is a root name server that appears in slightly less than 50 places world-wide.
You can read more about it here and here, and more about the general concept in this Wikipedia article.
F-root’s - they’re everywhere:
gw1.nycmnycz>traceroute f.root-servers.net
Translating "f.root-servers.net"...domain server (10.0.0.146) [OK]
Type escape sequence to abort.
Tracing the route to f.root-servers.net (192.5.5.241)
1 nyiix1.lga1.isc.org (69.48.130.115) 0 msec 0 msec 0 msec
2 f.root-servers.net (192.5.5.241) [AS 3557] 0 msec 0 msec 0 msec
For Google specifically there are also country-specific urls.
e.g. www.google.com is the USA & “universal” url.
But they also have www.google.co.nz in New Zealand. And if you’re in NZ and type “www.google.com” into your browser, you’ll be redirected to www.google.co.nz which will then serve up the familiar search page.
Many other multi-national firms have local websites in local datacenters using distinct local urls.