Monitoring and Troubleshooting DNS

Monitoring DNS with the DNS Console

The DNS management console includes functionality that enables you to use the console to monitor DNS activity:

How to configure which DNS events should be logged

  1. Click Start, Administrative Tools, and then click DNS.
  2. In the console tree, right-click the DNS server that you want to configure, and then select Properties to open the DNS Server’s Properties dialog box.
  3. Click the Event Logging tab.
  4. The options which you can select to limit DNS event logging are:
    • No events
    • Errors only
    • Errors and warnings
    • All events

How to test querying of the DNS server

  1. Click Start, Administrative Tools, and then click DNS.
  2. In the console tree, right-click the DNS server that you want to perform testing on, and then select Properties from the shortcut menu.
  3. Click the Monitoring tab.
  4. The options which you can select to test querying of the DNS server are listed below. You an select one of these options, or both options:
    • A Simple Query Against This DNS Server
    • A Recursive Query To Other DNS Servers
  5. Click the Test Now button.
  6. The results of the test are displayed in the Test Results area of the Monitoring tab.
  7. If you want the DNS server to automatically perform testing, select the Perform Automatic Testing At The Following Interval checkbox. In the Test Interval field, specify the interval that should be used.
  8. Click OK.

Monitoring DNS with System Monitor

The System Monitor utility is the main tool used to monitor system performance. System Monitor can track various processes on the Windows system in real time. The utility uses a graphical display that you can use to view current data, or log data. You can specify specific elements or components that should be tracked on the local computer and remote computers. You can determine resource usage by monitoring trends. System Monitor can be displayed in a graph, histogram, or report format. System Monitor uses objects, counters and instances to monitor the system

You can use System Monitor to monitor real-time performance statistics on your DNS server. The DNS performance object in System Monitor contains numerous DNS performance counters which you can use to monitor the activity of your DNS server.

You can use the DNS performance counters to generate statistics on:

To start System Monitor,

  1. Click Start, Administrative Tools, and then click Performance.
  2. When the Performance console opens, open System Monitor

The DNS performance counters that you can monitor to track DNS performance are:

How to specify DNS performance counters using System Monitor

  1. Click Start, Administrative Tools, and then click Performance.
  2. When the Performance console opens, open System Monitor.
  3. Click Add Counters to open the Add Counters dialog box.
  4. In the Performance Object drop-down list box, select DNS.
  5. If you want to monitor all counters associated with the DNS object, click the All Counters option.
  6. If you want to only monitor certain counters, click the Select counter from list option, select the performance counter that you want to monitor, and then click the Add button.
  7. Repeat Step 6 for each performance counter that you want to monitor.
  8. Click the All Instances option to track all instances, or click the Select Instances From List option to individually select instances
  9. Click Close.

Monitoring DNS with Network Monitor

You can use Network Monitor to monitor network traffic, and to troubleshoot network issues or problems. Network Monitor shipped with Windows Server 2003 allow you to monitor network activity and use the gathered information to manage and optimize traffic, identify unnecessary protocols, and to detect problems with network applications and services. In order to capture frames, you have to install the Network Monitor application and the Network Monitor driver on the server where you are going to run Network Monitor. The Network Monitor driver makes it possible for Network Monitor to receive frames from the network adapter

You can use Network Monitor to monitor and capture DNS specific data. You can use the Network Monitor version included in Windows Server 2003 to capture and analyze the traffic being received by the DNS server. Before you can use Network Monitor to capture DNS data, you first have to install it. You then have to run Network Monitor from the DNS server. The Network Monitor driver is automatically installed when you install Network Monitor.

How to install Network Monitor on the DNS server

  1. Click Start, and then click Control Panel.
  2. Click Add Or Remove Programs to open the Add Or Remove programs dialog box.
  3. Click Add/Remove Windows Components.
  4. Select Management and Monitoring Tools and click the Details button.
  5. On the Management and Monitoring Tools dialog box, select the Network Monitor Tools checkbox and click OK.
  6. Click Next when you are returned to the Windows Components Wizard.
  7. If prompted during the installation process for additional files, place the Windows Server 2003 CD-ROM into the CD-ROM drive.
  8. Click Finish on the Completing the Windows Components Wizard page.

How to capture DNS data with Network Monitor

  1. Open Network Monitor.
  2. Use the Tools menu to click Capture, and then click Start.
  3. If you want to examine captured data during the capture, select Stop And View from the Capture menu.

Monitoring DNS with Replication Monitor

Because Active Directory-integrated zones store their zone data in Active Directory, and not in DNS zone files, you have to monitor and examine replication for Active Directory–integrated zones by examining Active Directory replication. Replication Monitor (Replmon) is a graphical management tool included in the Windows Support Tools that can be used to monitor replication for Active Directory-integrated zones.

Replication Monitor can be used to perform the following activities:

Because Replication Monitor is not automatically installed during the installation of Windows Server 2003, you have to manually install it. Replication Monitor is included in the Windows Support Tools.

The information displayed in the main Replication Monitor window is listed below:

How to install Replication Monitor

  1. Insert the Windows Server 2003 CD-ROM in the CD-ROM drive.
  2. Using Windows Explorer, locate the SUPPORT\TOOLS\folder on the Windows Server 2003 CD-ROM.
  3. Double-click the SUPTOOLS.MSI file.
  4. The Support Tools Installation Wizard starts.
  5. Use the prompts of the wizard to install the Windows Support Tools.

How to start Replication Monitor

  1. Click Start, Run, and enter replmon in the Run dialog box.
  2. When the Replication Monitor opens, in the console tree, right-click Monitored Servers and select Add Monitored Server from the shortcut menu.
  3. The Add Monitored Server Wizard now starts.
  4. Select the Add The Server Explicitly By Name option. Click Next.
  5. In the Add Server To Monitor page, use the Enter The Name Of The Server To Monitor Explicitly box to specify the name of the server that should be monitored.
  6. Click Finish.
  7. The server that you specified for monitoring is now displayed in the console tree.

How to check for replication errors

  1. Click Start, Run, and enter replmon in the Run dialog box.
  2. When the Replication Monitor opens, click the Action menu.
  3. Select Domain, and then select Search Domain Controllers For Replication Errors.
  4. Click the Run Search button.
  5. Specify the name of the domain that should be searched.
  6. Replication Monitor next displays any replication errors which it detects during its search.
  7. Click Close.

How to manually force replication between domain controllers

  1. Click Start, Run, and enter replmon in the Run dialog box.
  2. In the console tree, right-click the directory partition that contains the DNS zone data that you want to force replication for, and then select Synchronize This Partition With All Servers from the shortcut menu.
  3. Click Yes to verify that you want to proceed with replication.

Monitoring DNS Events in Event Viewer

Even though the DNS management console contains a copy of the DNS event log, you can also use Event Viewer to view information on DNS events. Event Viewer stores events that are logged in a system log, application log, and security log. You can access Event Viewer from the Administrative Tools folder. A Windows Server 2003 computer running as a DNS server has an additional log displayed in Event Viewer, called the DNS Server log. This log contains errors and any important events that are reported by the DNS server.

A few of the more common DNS events are:

The Command-line Tools for Monitoring DNS

The command-line tools that you can use to monitor DNS are:

Troubleshooting the DNS Server using Logging

When you install Windows Server 2003 DNS, all DNS events are automatically logged to the DNS Events log. The DNS Events log contains errors and other significant events logged by the DNS server. You can view the contents of the DNS Events log by using Event Viewer, or by using the DNS management console. In Event Viewer, the log is called the DNS Server log. In the DNS console, the log can be viewed from the Event Viewer node in the console tree. The DNS Events log by default logs all DNS events. You can use the DNS console to change this default configuration setting.

The Windows Server 2003 Debug Logging feature can be enabled if you need to troubleshoot and resolve DNS issues that you have difficulty in resolving. For debug logging, another log file called the DNS debug log (Dns.log) is maintained by the DNS Server service. The debug logging feature is by default disabled. When enabled, debug logging can write all packets that are being sent to the DNS server in the Dns.log. The Dns.log is located in the WINDOWS\System32\Dns\ folder.

The DNS server can be configured to generate a log file which records and contains the information listed below:

How to limit the events that the DNS server logs in the DNS Events log

  1. Click Start, Administrative Tools, and then click DNS.
  2. In the console tree, right-click the DNS server that you want to configure, and then select Properties to open the DNS Server’s Properties dialog box.
  3. Click the Event Logging tab.
  4. Choose one the following options:
    • No events
    • Errors only
    • Errors and warnings
    • All events
  5. Click OK

How to configure the DNS Events log

  1. Click Start, Administrative Tools, and then click DNS to open the DNS console.
  2. In the DNS console tree, right-click DNS Events log and then select Properties from the shortcut menu.
  3. The DNS Events Properties dialog box opens.
  4. On the General tab, you can configure the following settings:
    • DNS log filename.
    • DNS log file location.
    • Maximum size of the log file.
    • Specify the actions that should occur when the maximum log file is reached.
  5. Click the Filter tab of the DNS Events Properties dialog box.
  6. The options on the Filter tab allow you to limit the events that are logged to the DNS Events log, based on the following parameters:
    • Event Type
    • Event Source
    • Event Category
    • Event ID
    • User/Computer
    • Date
  7. Click OK

How to enable and configure debug logging for the DNS server

  1. Click Start, Administrative Tools, and then click DNS to open the DNS console.
  2. In the console tree, right-click the DNS server that you want to enable debug logging for, and then select Properties from the shortcut menu..
  3. Click the Debug Logging tab.
  4. Select the Log Packets For Debugging checkbox to enable the debug logging feature on the DNS server.
  5. The configuration settings on the Debug Logging tab allows you to specify the events that should be logged, based on:
    • Packet direction
    • Transport protocol
    • Packet content
    • Packet type
    • Filter packets by IP address
  1. You can also specify the log file path, name, and maximum size.
  2. Click OK.

Troubleshooting the DNS Server using the Nslookup Command-line Tool

Nslookup is a standard TCP/IP command-line utility that can be used to perform query testing of your DNS servers. You can also use Nslookup to obtain detailed responses at the command prompt, thereby making Nslookup a good DNS name resolution diagnostic troubleshooting tool. With Windows Server 2003 DNS, you can run the Nslookup TCP/IP command-line utility straight from within the DNS console.

Nslookup can be used for the following purposes:

Nslookup can be run in two modes:

If you are using Nslookup interactive mode, you can use the Set command to specify how your queries will be executed. The common options configured with the Set command are:

Troubleshooting the DNS Server using the Ipconfig Command-line Tool

You can use the Ipconfig command-line tool to perform the following functions:

The common options used with the ipconfig command are:

Troubleshooting DNS Server Problems

A few guidelines for troubleshooting DNS server problems are outlined next:

Related Articles on DNS



Top 5 Free Networking Tools

Bookmark Monitoring and Troubleshooting DNS

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.