Fixing DNS Timeouts on Windows2003

Recently I decided to upgrade my DSL broadband connection from Qwest. The upgrade would give me twice the download bandwidth of before and so I thought it was a great idea. However, I started having a lot of problems soon after the connection was upgraded. Most annoying were the web browser issues, where certain sites would come up as being unreachable or timing out due to no response. Most of the time I would just hit refresh and the web site would come up. The DSL connection feeds a small LAN network and so it was not just one computer, but all of them that were having this problem.

This problem is really the result of packet loss or DNS reponse, or as many techs call it DNS timeouts. On a slower connection, you might never experience this issue, but as your connection increases in speed, lag times from certain servers does become more apparant, and you can not assume that because your internet connection just quadrupled in speed, that the servers that you are communicating with will suddenly give your requests more responsive attention. It just does not work that way.

My LAN runs a Window2003 Server with DNS, so I started with this first. All the other computers point to Windows Server as their primary DNS Server. After making sure that DNS was running properly on the server, and that it too was having the same problem, I researched it and found this Microsoft Technote:

Some DNS Name Queries Are Unsuccessful After You Upgrade Your DNS Server to Windows Server 2003

It appears that Windows2003 supports extended DNS information, and that some routers are not letting these UDP packets through because they are larger than usual.

This issue occurs because of the Extension Mechanisms for DNS (EDNS0) functionality that is supported in Windows Server 2003 DNS.

ENDS0 permits the use of larger User Datagram Protocol (UDP) packet sizes. However, some firewall programs may not permit UDP packets that are larger than 512 bytes. As a result, these DNS packets may be blocked by the firewall.

The easy fix is of course to turn off ENDS0.

1. Install the Dnscmd.exe program from the Windows Server 2003 Support Tools. To install the Windows Support Tools, right-click Suptools.msi in the Support\Tools folder on the Windows Server 2003 CD-ROM, and then click Install. Follow the steps in the Windows Support Tools Setup Wizard to complete the installation of the Windows Support Tools.

2. At a command prompt, type the following command, and then press ENTER:

dnscmd /config /enableednsprobes 0

This did help the problem some, but did not make it go away completely, and chances are that if you just have one computer with broadband and you are having the same problem, then you need to start looking at something called the MTU setting.

DSL Reports has more detailed information on MTU settings, but the short story is that MTU is the maximum size packet you can send through your broadband connection to your ISP, without your router splitting it up. Think of it as the maximum occupancy of your connection. The most it can carry at once.

A simple test to find out what your highest MTU setting can be is to open a DOS Prompt and type:

ping -f -l 1472 www.webkeydesign.com

You can ping any server or website you want, but do not ping a site like Google, because Google has multiple servers, and you will end up pinging different ones possibly and get inaccurate results. Pick a specific IP or a site you know only has one server.

If you get the message: packet need to be fragmented, then you need to decrease the number 1472 by 1, until you no longer get that message. If you did not get that message, then you can try adding 1, until you get the highest value that does not fragment. Once you have that number, then just add 28 to that number and that is your MTU. Most setups will work with 1492.

If you are using Mac OS X, you can try using the Network Utility in the Utilities Folder, or just try the 1492 setting for starters.

Now comes the configuration part, you have to change the MTU in all your computers and in all of your routers (broadband modem and wireless router if you have a second router). Most likely your router is defaulting to 1500, so you will definitely need to change that. The MTU setting is network card specific, so you will need to make changes for each network adaptor.

Once you made the changes, the DNS Timeouts should be gone. If they are not then check with your ISP to make sure that you have the right DNS Server addresses. As a general rule with wireless routers or small home office routers, you should type in the DNS addresses into each computer, and not depend on the router for your DNS server. Most small routers have a hard time with serving as primary DNS, so it works out better to just type in the ISP DNS addresses into each computer. If you are running DNS locally with a Windows Server or Linux Server, then you usually can just use the local server as the primary DNS, and type in the ISP addresses as backups.

Additional Info:

How To Find MAX MTU?

Firefox 1.5 RC1

After an extensive alpha and beta process, Firefox 1.5 is getting closer to release. The first release candidate or RC1 is now available from the Firefox Project site. So now is probably a good time to throw out some compatible add-ons that work with 1.5.

ColorZilla is my favorite color wheel tool for web development and something which I have learned to depend on more than any other online color reference tool.

Google Pagerank Status is a must for webmasters who want to know their pagerank, but who do not want to use the Google Toolbar.

For more extensions, visit The Extension Mirror.

And lastly, my favorite theme is now 1.5 compatible too. Check out SaferFox Xpanded for an interesting Firefox makeover look.

Papa John’s Pizza

I have been meaning to start blogging about some web sites that I find appealing for some reason or another, and so without any particular deep thought, my first Site Note is about the one site that I go to when I’m really feeling lazy and need to order some food.

I am talking about PapaJohns.com, which is the only pizza web site that lets me order online in my area and which actually delivers the pizza too! I have tried other sites from other competitors but they never get the orders, and I end up calling the order in, or like Pizza Hut, they actually do not have online ordering in my area.

Perhaps the best features about PapaJohns, besides the online pizza ordering is that the site is responsive, simple, and although you have to login to order anything, retrieving your password is very easy to do. Competitors should learn from PapaJohn’s site, because ease of use is the number one reason I end up ordering from their site, even when Pizza Hut and a couple of other competitors are actually closer to my house. The only complaint is that the website does not take any of the local coupon codes that I get in the mail.

If you must know, I do not work for PapaJohns Pizza or any of its competitors. I just enjoy ordering an occasional pizza with chicken strips (highly recommend the Hot Buffalo Sauce and Honey Mustard Dip), and hope that they will bring back the Spicey Meatball Pizza.