Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 27, 2004

Three Windows 2000 SP4 DNS Bugs


RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Last week, a client called to tell me that a particular type of email hadn't been delivered to users for more than a week. The client said that users had no problems sending or receiving mail from the desktop, but mail created by a Cold Fusion application running on a Win2K Service Pack 4 (SP4) server, while generating no errors, simply never arrived. I checked the event log and verified that the server hadn't undergone any updates, configuration changes, or reboots during the 24-hour period before the problem surfaced. To complicate matters further, although desktop mail arrived at its destination address, mail sent by Cold Fusion to the same address simply disappeared into cyberspace.

This puzzling state of affairs had me scratching my head as I cruised through several logs on several servers, looking for evidence. The only network modification made on the fatal day was an update to the firewall, a machine that also functions as a Network Address Translation (NAT) and caching DNS server. Hmmm, suspicious yes, but not exactly obvious.

After several troubleshooting activities, I discovered that DNS queries using the Nslookup command on the server running the Cold Fusion application failed, whereas queries from other servers accessing the same DNS server worked as expected. First, I tried restarting both DNS servers; that didn't clear up the problem, but the heavy-handed approach did. After rebooting the main and caching DNS servers, the week’s backlog of Cold Fusion mail started appearing in users Inboxes.

Although I successfully worked around the problem, it took some research in the knowledge base to locate a potential explanation for the sudden breakdown of name resolution on a single server. Here are three newly documented DNS bugs and hotfixes for Win2K SP4 systems. You might want to file them away in the event you encounter Win2K DNS hiccups, especially if your DNS configuration uses forwarders to resolve name lookup requests. Read the entire article before you call the support folks. It turns out that Microsoft released three new versions of DNS in 4 days; if you install only the latest and greatest version, you’ll save time for other activities with much greater fun potential.

During my troubleshooting, I started the Microsoft Management Console (MMC) DNS snap-in on the main DNS server and tried to connect to the caching DNS server. After a lengthy wait, the MMC snap-in reported that it was unable to locate the caching server, placing a red X over the server name in the left pane. According to a Knowledge base posting dated September 16, this is a known problem in Win2K SP4 when you ask the MMC DNS snap-in to connect to a DNS server on a Win2K domain controller (DC). However, I experienced exactly the reverse: I started the MMC on the DC running DNS and the snap-in was unable to connect to the caching DNS server. The Microsoft article " You cannot connect to a DNS server by using the DNS snap-in on a Windows 2000 Server-based domain controller" (http://support.microsoft.com/?kbid=884548) states that Microsoft Product Support Services (PSS) has a hotfix for this bug, a new version of dns.exe (v 2195.6971), with a file release date of August 25.

Here's one possible explanation for why name queries failed only on the Cold Fusion server. On this network, a Win2K DC operates as the main DNS server and forwards queries it can't resolve to a caching server. The caching server, in turn, forwards queries to root servers on the Internet. A September 8 knowledge base posting states that a bug exists in how DNS manages name resolution requests using forwarders. Specifically, a Win2K DNS server ignores “server failure” responses from forwarders and continues to send the name resolution request to the forwarder or to each configured root hint server until the default recursion timeout of 15 seconds is reached. The result of this algorithm is that the DNS server doesn't communicate a lookup failure to the DNS client (the Cold Fusion server in my example) until the timeout period expires.

Extrapolating from the forwarders bug, I suspect that the Cold Fusion application has a flaw in how it processes name lookup failures when the response is delayed for such a long period of time. The Cold Fusion application might generate a hundred DNS name resolution requests during the time it takes the DNS server to respond to a single failure.

The hotfix to eliminate the recursion delay is dated August 26 2004, 1 day later than the version that eliminates the MMC snap-in bug. According to the Microsoft article "The DNS server waits for a recursion timeout before it sends a 'Server Failure' response to the client in Windows 2000" (http://support.microsoft.com/?kbid=873454), the hotfix containing version 5.0.2195.6972, is only available from PSS. After you install the hotfix, you must reboot the system to load the updated code.

The last DNS hotfix corrects a coding recursion error that causes DNS to consume all available CPU time and memory, potentially hanging the system when resources are exhausted. This bug crops up when the server processes a query for a delegated zone, instead of a primary zone. According to the reference article "High memory usage and high CPU utilization in the DNS Server service in Windows 2000" http://support.microsoft.com/?kbid=873441, the bug causes the DNS server to go into an infinite loop querying a record in the delegated zone that doesn't exist. The oldest of the August updates to DNS---version 5.0.2195.6970, with a file release date of August 23--is superseded by versions that correct the MMC DNS snap-in and the forwarders delay bugs.

To check the version of the currently installed DNS, use Windows Explorer to search for the file dns.exe in %systemroot%. Dns.exe should appear in two places: %systemroot%\system32 and %systemroot%\dllcache. The version in \dllcache is the one that is currently running. Right-click %systemroot%\dllcache\dns.exe, pick the version tab, and click Product Version in the Item name box to display the version number in the right pane. When you install a new version of dns.exe, the new version is copied to %systemroot%\system32, but the running version in %systemroot%\dllcache isn't updated until you restart the system.

As of this writing, the most current version of DNS for Win2K SP4 is the one documented in the Microsoft article "The DNS server waits for a recursion timeout before it sends a 'Server Failure' response to the client in Windows 2000" (http://support.microsoft.com/?kbid=873454), version 5.0.2195.6972 of dns.exe with a file release date of August 26, 2004. If Microsoft follows the rules, version .6972 should contain fixes for all three problems I reviewed today. I haven’t installed it yet, so if you do and the results aren't what you expect, share your experiences by posting a comment below.

End of Article



Reader Comments
Ok

zorroamoto September 27, 2007 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...

Outlook Tips and Techniques

Read about hiding items, merging appointments, multiple windows, creating views, permissions, sending Outlook items to outside recipients, Send As permission, Inbox Assistant, tricks for rules, and tips for obtaining Microsoft Knowledge Base articles. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Microsoft Exchange & Windows Connections event returns to Las Vegas Nov 10 - 13
Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. Co-located with Microsoft ASP.NET, SQL Server, and SharePoint Connections with over 250 in-depth sessions.

Free Online Event! Virtualization:Get the Facts!
Register now and attend this free, live in-depth online conference on November 13 and 20, 2008, produced by Windows IT Pro. All registrants are eligible to receive a complimentary one-year digital subscription to Windows IT Pro (a $49.95 value)!

Check Out Hyper-V Video on ITTV
Watch Karen Forster's interview on Hyper-V's performance on ITTV.net.

Ease Your Scripting Pains with the Flexibility of PowerShell!
Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer!

PASS Community Summit 2008 in Seattle on Nov 18-21
The don’t-miss event for Microsoft SQL Server Professionals. Register now and you’ll enjoy top-notch Microsoft and Community speakers and more.



Solving PST Management Problems
In this white paper, read about the top PST issues and how to administer local/network PST Files.

Get Protected -- Data Protection Manager 2007
Protect your virtualized environment with Data Protection Manager

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing