April 15, 2005

Alternate DNS Servers

The other day, my Internet connection went down — well, I didn’t see it go down but, when I got back from work that day, I couldn't browse anywhere. And, what would often help in the past would be to reboot my cable modem; so, I tried that about three or four times (and, really, I should have caught on after the second time). Comcast hasn’t been incredibly reliable for me — they tend to go down every couple months — and I just chalked this up to their usual ineptness.

I then noticed a curiosity — my IM client was still online. And I could still read my mail. But I couldn't browse the web (whaa?). I wondered for a moment whether Firefox was acting up and so I tried loading an ftp client to test my connection. (You thought I might load IE for that? Not if I can help it ;).) Sure enough, FileZilla couldn't connect anywhere either. Then it hit me: my DNS had probably gone wonky. That would explain why I couldn't browse anywhere but my most common Internet apps still held up — those ip addresses were cached by my OS.

At that point, I ran “ipconfig /all” and then pinged the DNS servers to which I was assigned. To no surprise, they both timed out. Then, on a hunch, I tried loading Google and I was actually able to make it there (since I suppose its ip address was one of those in my cache). I then tried searching for “alternate DNS servers”. There were quite a few hits but, of course, I couldn’t see any of them since those sites weren’t in my existing DNS cache (d’oh!). It then dawned on me that I could view the Google Cache of those pages; and, while the pages probably wouldn't look pretty, that would hopefully allow me to get the info I needed.

Indeed, Google Cache worked nicely and I found some alternate DNS servers that I could use. I popped those in my settings and I was up and running again. However, I realize now that I could have made things easier on myself by keeping a few spare DNS servers on hand — before they actually went down. In any case, while there are dozens of DNS servers which are suitable, some that were mentioned consistently were the 4.2.2.x series (4.2.2.1 through 4.2.2.6).

I did an nslookup on those ip addresses and they came back as Genuity.net and GTEI.net servers. Perhaps ironically, I can’t load either of those domains right now, otherwise I’d include a sentence about who each of those companies are ;). But, with such low-numbered ip addresses, I presume they’re of some importance within the InterWeb. In any case, one of the comments on Digg.com [*] offers these instructions for adding DNS servers in case you haven’t done that kind of thing before:

Click on “My Computer”. Click on “My Network Places”. Click on “View Connections”. Right click on the connection that supports your Internet connection and go to “Properties”. Double click on the Internet Protocol TCP/IP option. Make sure “Use the following DNS server address” is selected, and input the above recommended DNS.

To check go to “Start > Run > “cmd” ”. Type in “ipconfig /all” and you should see the DNS you input where it says “DNS”.

[*] On a side note, what is Digg, anyway? Pages within digg.com have been coming up in my search results more frequently recently but I can't quite wrap my head around what the site is about. Something about folksonomies, I’m guessing.

Anyway, before adding those DNS servers, you may as well ping each of them to see which of them are fastest for you. If you go through all six of them, just pick (say) the two with the lowest ping times. Granted, it’s all a matter of milliseconds but every little bit helps ;).

This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.
27 Responses to “Alternate DNS Servers”
  1. Michael Garrett says:

    In windows 2000, XP, and 2003, you can add more than 2 DNS servers. Put them in the order of fastest first, slowest last, and windows will try the first one for every hit, dropping to the second and third if the primary DNS is not available. You could put first the DNS servers from your ISP which are probably the fastest (fewest number of hops) followed by others to serve as a backup. That way, when Comcast’s servers come back up, your computer will automatically start using those DNS servers, without you having to further dink with your settings.

  2. Alex says:

    That sounds like good advice, Mike. However, from what I’ve read, Comcast only uses two DNS servers nationwide (!). So, of course, when those went down, it took their entire network went down. But, more than that, those DNS servers could be in Oregon for all I know and I can’t be sure they really would be faster than a 3rd-party DNS server :-/.

  3. pingy says:

    so M$ Loseblows is now a caching name server?

    instead of using FileZilla as a network diagnostic tool one might consider some gems like mtr and dig. although presumably all of these would’ve worked had you fed them an IP address instead of a name to resolve.

  4. Raph Mickey says:

    I actually used this for another purpose – my ISP cached name server settings for one of my domains, and I was in a hurry to work with the new host, so on my ADSL modem i changed the primary DNS server to 4.2.2.1 and flushed the local cache and it was all sorted. What is really remarkable is that 4.2.2.1 is FASTER than my ISP’s DNS.

  5. ascendant says:

    The DNS server at 4.2.2.1 is part of a group with similar addresses at 4.2.2.x where x is 1-6.

    You may want to ping them all and see which one is fastest for you. 4.2.2.2 is fastest for me and …1 is slowest by more than a few ms.

  6. David Kittell says:

    Personally I use OpenDNS and BrowserSafe DNS
    That way I don’t have to rely on my ISP.

    http://www.browsesafe.com/instructions.html
    https://www.opendns.com/start?device=windows-xp

  7. Rick says:

    I found a new free service by UltraDNS the largest managed DNS service provider out there called DNS Advantage which is much better. Check it out http://www.dnsadvantage.com

  8. Preston Lewis says:

    4.2.2.1, 4.2.2.2, 4.2.2.3, 4.2.2.4, 4.2.2.5 belong to Level3, a CLEC are are available for anyone to use. They aren’t the fastest, not the best, but they are easy to remember and they always seem to work. I personally would not recommend you use them on a daily basis since OpenDNS and your own ISP DNS servers generally are faster and better but when all else fails, Level3’s DNS servers are there, reliable, free etc.

  9. georgie says:

    The 4.2.2.x servers are run by many different companies/organizations. They use anycast to determine the geographically closest DNS server to you using your IP address.

    http://en.wikipedia.org/wiki/Anycast

  10. Dustin says:

    No. The 4.2.2.x servers ARE Anycasted, but they ARE owned by L3, not “many different companies/organizations”.

    Genuity, GTEI, etc are all L3, not other companies.

  11. Rotaboy says:

    Hi all,
    To check how fast the DNS is, here is a tool that i found.

    http://www.codeproject.com/KB/IP/DNSTester.aspx

    A tool that can be used to analyse your DNS performance. It checks the timing of DNS requests between two DNS servers, and displays the results. Download the tool and enter your DNS.

  12. Sunny says:

    Always REPLYING DNS I have ever use for my Server
    the DNS is Recommending
    Good Luck,
    sonypez

  13. Fluctuating access problems at TechDonkey.com says:

    […] http://www.handcoding.com/archives/2005/04/15/alternate-dns-servers/ […]

  14. Suman says:

    It’s much better to set up a local DNS cache on your computer. It speeds up DNS lookup to a large extent. Read this

    http://www.instantfundas.com/2008/04/speed-up-your-browsing-by-setting-up.html

  15. OpenDNS: A Followup at Sector 930 says:

    […] instructions on how to change this: (from this guy) Click on “My Computer”. Click on “My Network Places”. Click on “View Connections”. […]

  16. kashmiri says:

    BTW, Genuity is a company that manufactures genetically modified seeds. Their website loads without problems if you use their dns.

  17. sam says:

    Just so you know those backbone addresses are for the Go-mint and the copses. You will all be pushed to these select IPs for DHCP so they can track you moves. True DHCP will die. Static IP and select (read traceable) DHCP is the way of the future.

  18. james says:

    Genuity was originally a dot com-era brand of the old GTE (now named Verizon), and offered business-class internet services (hosting, VPN, etc). Thats why a lookup on these IP’s sometimes returns an owner of GTEI (GTE Internet). I never followed Genuity after 2001 or so (which is when GTE sold it I believe) but it would make sense that L3 owns the brand now.

    Should those 4.2.2.x servers ever go down lots of things will go boom. 4.2.2.1 and 4.2.2.2 are so reliable that many consultants/techs/admins/etc (including myself) use them as a test or temporary work-around for less-reliable DNS servers. Unfortunately, like most work-arounds, many of us forget to change them back or find a better fix. I frequently find 4.2.2.1 and its siblings configured in DNS server forwarding lists, home gateways, mail filters, even global Exchange org configurations.

  19. petrilli says:

    As someone who used to be at GTE/Genuity/L3, 4.2.2.x predate Genuity. They’re actually part of the heritage of BBN, or “the people who build the Internet”. As far as I’m aware, they are the first implementation of the anycast idea in DNS. If my memory serves me — and it’s been many years — every single server, and there are many, is BGP peered into the network so that it will benefit from the overall routing architecture. As such, overall, it achieved 100% uptime for many years. Last I knew, there had been no downtime that was actually attributable to the server clusters, and instead it was all caused by peering issues.

  20. Shanmugam says:

    When the internet connection doesn’t work due to DNS issues, we often use these two DNS servers to resolve it: 4.2.2.1 and 4.2.2.2

    Here is an article about it:
    http://www.bukisa.com/articles/327629_4221-and-4222-the-fast-dns-servers-for-faster-internet

  21. Tacoman522 says:

    hi that helped me set up a minecraft server
    you can get on 192.168.1.2
    a bit laggy(maybe)

  22. CHL2001 says:

    Found this useful in solving a DNS problem.
    Thanks.

  23. www.ghanaweb.com says:

    I think this is among the most significant info for me. And
    i’m glad reading your article. But want to remark on few general things, The site style is wonderful,
    the articles is really nice : D. Good job, cheers

  24. 质优廉价的硅胶管厂家硅胶管硅胶条耐高温硅胶管耐热硅胶管硅胶餐具硅胶礼品 says:

    Hello my friend! I wish to say that this post is amazing, great written and come with almost all important infos. I would like to look extra posts like this .

  25. how to configure best best comcast how to connect xbox 360 says:

    Very nice write-up. I definitely love this site. Keep writing!

  26. how to configure best comcast best comcast modem for xbox says:

    It’s awesome in favor of me to have a web site, which is good in favor of
    my experience. thanks admin

  27. Twyla Milardo says:

    Have used this for almost half a year, and would have to say it’s really awesome. Seems that this is available in most restrictive areas as that’s where the servers are located. Will use again.

Leave a Reply

HTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>