Hashemian Blog

Web Tools, Financial Markets, Technology

Wednesday, June 18, 2008

DNS Mystery, NameServers, IP addresses 

Today I was trying to reach 1&1's home page, but the browser kept failing to pull up the site. Mysteriously I was able to reach 1&1's home page when I changed my DNS servers to those of OpenDNS.org. Feeling curious I decided to investigate the matter in depth. My default DNS server was reporting the IP address of www.1and1.com to be 217.160.232.1. While that address belongs to 1&1, it's really one of their routers or gateways and not a Web server. No wonder I was unable to access the site. the working IP address reported by OpenDNS.org and a number of other DNS servers was 217.160.226.203. That is indeed the correct IP address for www.1and1.com. So why was I seeing different results from different DNS servers?

As you may know the job of translating a host name to an IP address falls on a program known as the resolver which queries its designated DNS server for the answer. If the DNS server can not produce the translation (from its cache or authority zone), it issues what it's know as a recursive query to the DNS network on the Internet. The host name is broken to its fragments and each fragment from right to left is queried successively. The results generally consists of hosts known as NameServers, which get the query one step closer to the final result. The final NameServers produce the IP address translation. However, if any of the NameServers along the way can produce the translation, the query stops and the IP address is sent back to the resolver.

Using the Unix/Linux dig command I followed the name resolution for www.1and1.com one step at a time. Results are shown here and shortened for brevity.

This command displays the root servers:
# dig
;; ANSWER SECTION:
. 451081 IN NS M.ROOT-SERVERS.NET.
. 451081 IN NS A.ROOT-SERVERS.NET.
. 451081 IN NS B.ROOT-SERVERS.NET.
. 451081 IN NS C.ROOT-SERVERS.NET.

This command queries one of the root servers and produces NameServers for "com." TLD (Top Level Domain):
# dig +norec @A.ROOT-SERVERS.NET www.1and1.com
;; AUTHORITY SECTION:
com. 172800 IN NS K.GTLD-SERVERS.NET.
com. 172800 IN NS L.GTLD-SERVERS.NET.
com. 172800 IN NS M.GTLD-SERVERS.NET.
com. 172800 IN NS A.GTLD-SERVERS.NET.

This command queries one of the "com." NameServers:
# dig +norec @A.GTLD-SERVERS.NET www.1and1.com
;; ANSWER SECTION:
www.1and1.com. 172800 IN A 217.160.232.1
;; AUTHORITY SECTION:
1and1.com. 172800 IN NS ns27.1and1.com.
1and1.com. 172800 IN NS ns28.1and1.com.

Generally the previous command shouldn't produce and IP address, instead the authority section would prompt a final query to one of the 1and1.com NameServers (which by the way have the correct IP translation.) Instead somehow an IP address is produced at this level and the query ends with this inaccurate IP translation. I've tried the same query with the homepage URL's of Microsoft, Google, Yahoo and a few other sites and none return an IP address at this level.

It remains to be seen if this erroneous translation would eventually spread around, causing 1&1's homepage to become widely inaccessible. Anyone knows how that IP translation ended up in of the "com." NameServers? Am I making wrong assumptions here? Feel free to let me know.

,,,,

Labels: , ,

<DNS Mystery, NameServers, IP addresses>

0 comments

Wednesday, March 19, 2008

Google, Blogger in German? 

Here's a head-scratcher for tonight. When I got home one of my kids was trying show me something on blogger.com and suddenly everything was in Deutsch, as in German. At first I though that it was a mix-up. Some programmer at Google (which owns Blogger) had screwed up and suddenly everything had gone Teutonic. Now we have a German-speaking household, so then I assumed that the kids had changed some setting to German language and Google was happily obliging.
Google, Blogger in German

Hoping to unravel the mystery, I logged in to my own account on the XP machine and headed to google.com. no luck, it kept switching over to google.de. What was happening here? I checked the regional settings on the XP machine and everything was as expected, en-US. Then I headed to the whoami page to see if my IE browser was specifying a wrong "Accept-Language" header (i.e. de-DE) prompting Google to redirect to its German site based on the CultureInfo. Nope, that wasn't the problem either. Then I launched Firefox and surfed onto google.com. Same behavior, I landed on Google's German site again.

Somehow Google was convinced that I was German and it was trying to help me, more like coerce me, to their German site. Is it possible that they had an algorithm tracking web sites visited from my house and deciding that the "most appropriate" site for us was their German version? I can't say for sure, but apparently Google had decided that we should use their German site.

A quick fix was to click on the English link on Google's homepage. That deposited a cookie in the browser indicating that I was interested in the standard google.com site and it fixed the immediate problem, but not entirely. Blogger was (and still is) coming up in German and deleting cookies, as I often do, would bring things back to the annoying redirect. Was Google erroneously identifying my IP address as one from Germany?

Feeling frustrated, I searched the newsgroups for an answer and I found this thread that confirmed my suspicion. One of the posters who was experiencing the same problem had written to Google and had received this response:
Google has recently started using IP-address detection to help our users find our foreign destination sites. Unfortunately, our IP-address detection is not perfect and you are being inappropriately redirected. We are working on the problem. In the interim, you can regain your old Google.com experience by simply clicking on the 'Google.com [English]' link in the footer of the page. By clicking on this, Google will note that you have opted out of the foreign domain site and you will no longer experience redirects.

So it was an IP address mis-identification after all. This is the most ridiculous scheme I have heard of, and to have it come out of Google, it is almost inconceivable. No doubt the folks at Google are padding themselves on their backs for their ingenuity. Meanwhile they apparently have disregarded the basic rules of IP addresses on the Internet and the proper way of serving visitors.

  • First off, please don't help me along when I haven't asked for it. That is so Microsoft to try to be helpful in all the wrong places. If I want the German site, I'll ask for it myself.

  • Second, the correct way of determining a user's preferred CultureInfo is checking the browser header. The browser will tell you what language the user is likely interested in.

  • Third, the IP address is an unreliable way of determining the user's preferred language. The user could be an American connecting his laptop from his hotel room in Germany. Or a Parisian employee of an American company using a corporate proxy server in the U.S.

  • Fourth, if you must persist in this IP detection insanity, at least make sure your databases are not flawed. I'm connected over an AT&T DSL circuit in Connecticut, yet Google apparently believes I'm in Germany or Lichtenstein.

  • And finally don't give the visitor some half-baked solution of clicking on a link, when it doesn't help with your other sites and reverts to the original problem when cookies are deleted. Not to mention that it wouldn't even work if the user has opted to block cookies.


  • For a company that prides itself in its technical prowess and its service, Google sure astounded me with this one. Or, is this just a ploy to throw some traffic to their foreign sites?

    ,,,,,,

    Labels: , , ,

    <Google, Blogger in German?>

    0 comments

    This page is powered by Blogger. Isn't yours?

    Links
  • Hashemian Blog Feeds
  • Add to Google
  • Read Hashemian.com/blog/ with Bloglines
  • Subscribe to Hashemian.com/blog/ with My Yahoo!
  • Technorati Profile
  • TMCnet.com
  • ARCHIVES
  • 09/01/2003 - 10/01/2003
  • 03/01/2004 - 04/01/2004
  • 04/01/2004 - 05/01/2004
  • 05/01/2004 - 06/01/2004
  • 06/01/2004 - 07/01/2004
  • 07/01/2004 - 08/01/2004
  • 08/01/2004 - 09/01/2004
  • 09/01/2004 - 10/01/2004
  • 10/01/2004 - 11/01/2004
  • 11/01/2004 - 12/01/2004
  • 12/01/2004 - 01/01/2005
  • 01/01/2005 - 02/01/2005
  • 02/01/2005 - 03/01/2005
  • 03/01/2005 - 04/01/2005
  • 04/01/2005 - 05/01/2005
  • 05/01/2005 - 06/01/2005
  • 06/01/2005 - 07/01/2005
  • 07/01/2005 - 08/01/2005
  • 08/01/2005 - 09/01/2005
  • 09/01/2005 - 10/01/2005
  • 10/01/2005 - 11/01/2005
  • 11/01/2005 - 12/01/2005
  • 12/01/2005 - 01/01/2006
  • 01/01/2006 - 02/01/2006
  • 02/01/2006 - 03/01/2006
  • 03/01/2006 - 04/01/2006
  • 04/01/2006 - 05/01/2006
  • 05/01/2006 - 06/01/2006
  • 06/01/2006 - 07/01/2006
  • 07/01/2006 - 08/01/2006
  • 08/01/2006 - 09/01/2006
  • 09/01/2006 - 10/01/2006
  • 10/01/2006 - 11/01/2006
  • 11/01/2006 - 12/01/2006
  • 12/01/2006 - 01/01/2007
  • 01/01/2007 - 02/01/2007
  • 02/01/2007 - 03/01/2007
  • 03/01/2007 - 04/01/2007
  • 04/01/2007 - 05/01/2007
  • 05/01/2007 - 06/01/2007
  • 06/01/2007 - 07/01/2007
  • 07/01/2007 - 08/01/2007
  • 08/01/2007 - 09/01/2007
  • 09/01/2007 - 10/01/2007
  • 10/01/2007 - 11/01/2007
  • 11/01/2007 - 12/01/2007
  • 12/01/2007 - 01/01/2008
  • 01/01/2008 - 02/01/2008
  • 02/01/2008 - 03/01/2008
  • 03/01/2008 - 04/01/2008
  • 04/01/2008 - 05/01/2008
  • 05/01/2008 - 06/01/2008
  • 06/01/2008 - 07/01/2008
  • 07/01/2008 - 08/01/2008
  • 08/01/2008 - 09/01/2008

  • Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

    © 2001-2008 Robert Vahid Hashemian
    Support the effort
    Liked this page?
    Please consider creating a link to it
    from your Web site.

    hashemian.com
    هاشمیان.com

     Home

     Blog

     Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
    Usage

     News

     Articles

     FAQ

     About

     Contact

     Financial Markets Book
    Read Complete Book

    Search Amazon:  
    Amazon Logo

    aStore - Hashemian.com on Amazon

    Visits: Powered by hashemian.com

     

     

     

     

     

    Search Hashemian.com



    eBay