Monitoring and Troubleshooting
Key terms for this section include the following:
Term | Definition |
---|---|
DNS Performance Alerts | A feature added to Server Manager when the DNS role is added to send alerts when CPU usage and available memory cross a configurable threshold. |
DNS Performance Tuning | The process of monitoring and configuring the DNS server's critical resources to optimize DNS performance. |
PowerShell | An automated task framework provided by Microsoft with a command line shell and scripting language. There are several DNS cmdlets that can be uses to set up, configure, and manage a DNS server. |
dnscmd | A command line utility used for routine DNS setup, configuration, and management. |
DNS monitoring tools
DNS troubleshooting tools
DNS Monitoring Tools
There are several tools that can monitor the health of a DNS server.
Tool | Description |
---|---|
DNS Performance Alerts | The DNS tab in Server Manager has a performance pane containing a graph that monitors CPU and memory.
|
Automated DNS Testing | Within the DNS Manager utility, there is a Test Now button under the Server properties' Monitoring tab. When you select it:
|
Dnsperf | Dnsperf is an industry standard tool that measures the performance of a DNS server by sending a measured number of queries. Dnsperf:
|
DNS Log File | DNS log entries are found in the DNS log file.
|
Event Viewer | There are three DNS event logs.
|
DNS Troubleshooting Tools
DNS problems usually fall into two categories.
When there is no response to a DNS query, the problems may be related to the DNS server itself.
When the DNS service either gives a negative response to a host that does exist or responds with incorrect information, diagnosing the problem can be more challenging.
There are several command line tools that can help troubleshoot name resolution problems.
Command Line Tool | Description |
---|---|
ping | A ping gives a quick indication of any DNS problems.
|
ipconfig | The ipconfig command can be used to view your DNS client settings to make sure they’re correct.
|
nslookup | The nslookup command is a simple way to run queries against a DNS server.
|
Other utilities can also be used to review and configure DNS settings.
The dnscmd command can be run from the command prompt.
You can run several options with this command, including /clearcache, which clears the lookup cache on the DNS server.
There is a long list of PowerShell cmdlets that can be used to troubleshoot a DNS server. For example:
Clear-DNSServerCache clears the DNS server lookup cache.
Get-DnsServer retrieves configuration information.
Get-DnsServerStatistics gives statistics about DNS record types, zone queries, zone transfers, and zone updates along with other useful troubleshooting information.
Troubleshooting dynamic DNS
Complete this lab as follows:
Connect to the CorpDC virtual machine as follows:
From Hyper-V Manager, select CORPSERVER.
To view all of the virtual machines, maximize Hyper-V Manager.
From the Virtual Machines pane, right-click on CorpDC and select Connect.
Create the reverse lookup zone as follows:
From Server Manager, select Tools > DNS.
From the left pane, expand CORPDC.
Select Reverse Lookup Zones. Notice that there is no reverse lookup zone for the 192.168.0.x network.
Right-click Reverse Lookup Zones and select New Zone.
Click Next to begin the New Zone wizard.
Make sure the Primary zone and Store the zone in Active Directory options are selected.
Click Next.
Select how you want to replicate data and click Next.
Make sure that IPv4 Reverse Lookup Zone is selected and click Next.
In the Network ID field, enter 192.168.0 and click Next.
Specify the type of dynamic updates that will be accepted for the DNS zone.
Click Next.
Click Finish.
Troubleshooting DNS records
Create an A record for CorpWeb using 192.168.0.15Explanation
Complete this lab as follows:
From CorpServer, use the ping command to troubleshoot the connection to the CorpWeb server as follows:
In the Search the web and Windows field, enter cmd.
Under Best match, right-click Command Prompt and select Run as Administrator.
At the command prompt, type ping corpweb.corpnet.local and press Enter. Notice that the ping is unable to find CorpWeb.
At the command prompt, type ping 192.168.0.15 and press Enter. The ping succeeds using the IP address, indicating a problem with the CorpWeb DNS record.
Create the host record for CorpWeb as follows:
In Hyper-V Manager, select CORPSERVER.
Under Virtual Machines, right-click CorpDC and select Connect.
In Server Manager, select Tools > DNS.
In the left pane, expand CORPDC.
Expand Forward Lookup Zones.
Right-click CorpNet.local and select New Host (A or AAAA).
In the Name field, enter CorpWeb.
In the IP address field, enter 192.168.0.15.
Select Create associated pointer (PTR) record to automatically create the PTR record for the new host.
Select Add Host.
Click OK.
Click Done to close the New Host dialog.
From CorpServer, verify that the new host record fixed the connection issue as follows:
At the command prompt on CorpServerping, type ping corpweb.corpnet.local and press Enter. The ping now succeeds.
Last updated