@@ -26,13 +26,13 @@ Tests that a specified computer is a functioning DNS server.
2626## SYNTAX
2727
2828### Context (Default)
29- ```
29+ ``` yaml
3030Test-DnsServer [-IPAddress] <IPAddress[]> [-ComputerName <String>] [[-Context] <String>]
3131 [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
3232```
3333
3434### ZoneMaster
35- ```
35+ ``` yaml
3636Test-DnsServer [-IPAddress] <IPAddress[]> [-ComputerName <String>] -ZoneName <String>
3737 [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
3838```
@@ -47,29 +47,29 @@ If you also specify a zone name, the cmdlet validates that the DNS server can re
4747## EXAMPLES
4848
4949### Example 1: Test whether a DNS server is functional
50- ```
50+ ``` Powershell
5151PS C:\> Test-DnsServer -IPAddress 10.123.183.155
5252
5353IPAddress Result RoundTripTime TcpTried UdpTried
5454--------- -------- ------------ -------- --------
55- 10.123.183.155 Success 00:00:11 True True
55+ 10.123.183.155 Success 00:00:11 False True
5656```
5757
5858This command tests whether the computer that has an IP address of 10.123.183.155 is a functional DNS server.
5959
6060### Example 2: Test whether a DNS server is functional and has valid configured forwarders
61- ```
61+ ``` Powershell
6262PS C:\> Test-DnsServer -IPAddress 10.123.183.155 -Context Forwarder
6363
6464IPAddress Result RoundTripTime TcpTried UdpTried
6565--------- -------- ------------ -------- --------
66- 10.123.183.155 Success 00:00:11 True True
66+ 10.123.183.155 Success 00:00:11 False True
6767```
6868
6969This command tests whether the computer that has an IP address of 10.123.183.155 is a functional DNS server that has valid configured forwarders.
7070
7171### Example 3: Test whether a DNS server is functional and has valid configured root hints
72- ```
72+ ``` Powershell
7373PS C:\> Test-DnsServer -IPAddress 10.123.183.155 -Context RootHints
7474
7575IPAddress Result RoundTripTime TcpTried UdpTried
0 commit comments