Skip to content

Function DnsHost

Mark Wragg edited this page Jun 17, 2019 · 4 revisions

DnsHost

SYNOPSIS

Test DNS resolution to a host.

DESCRIPTION

Test DNS resolution to a host.

PARAMETERS

Target [String]

[Parameter(
  Mandatory = $true,
  Position = 2,
  ParameterSetName = 'Set 1')]

Should [ScriptBlock]

[Parameter(
  Mandatory = $true,
  Position = 3,
  ParameterSetName = 'Set 1')]

Assertions

-Be

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

dnshost nonexistenthost.mymadeupdomain.tld { should -Be $null }

-------------------------- EXAMPLE 2 --------------------------

dnshost www.google.com { should -Not -Be $null }