You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -345,9 +345,27 @@ Set up a local PowerShell repository and install the Az.DnsResolver PowerShell m
345
345
Write-Host $rule.ToJsonString()
346
346
```
347
347
348
+
## Test DNS security policy
349
+
350
+
To test your new security policy, connect to a host device inside the virtual network and issue a query for the domains that you blocked. In this example the domainlist is **contoso.com** and **adatum.com**.
351
+
352
+
Input:
353
+
```PowerShell
354
+
Resolve-DnsName -Name contoso.com -Type NS
355
+
```
356
+
357
+
Output:
358
+
```PowerShell
359
+
Resolve-DnsName : contoso.com : DNS server failure
0 commit comments