Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ValidateDNS Simple Operation Validation Framework tests
Describe 'DNS' {
It 'Should be running' {
(Get-Service -Name DNS).Status | Should Be Running
}
$Forwarders = Get-DnsServerForwarder
It 'First forwarder should be 8.8.8.8' {
$Forwarders.IPAddress[0] | Should Be '8.8.8.8'
}
It 'Second forwarder should be 4.4.4.4' {
$Forwarders.IPAddress[1] | Should Be '4.4.4.4'
}
It 'Should resolve microsoft.com' {
{ Resolve-DnsName -Server LocalHost -Name microsoft.com } | Should Not Throw
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment