Skip to content

Resolve-DnsHost

SYNOPSIS

Resolves a hostname to an IP address.

SYNTAX

__AllParameterSets

Resolve-DnsHost [-Name] <string> [[-AddressFamily] <AddressFamily>] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

This function resolves a hostname to an IP address using the System.Net.Dns class.

EXAMPLES

EXAMPLE 1

Resolve-DnsHost -HostName 'google.com'

PARAMETERS

-AddressFamily

The address family to use for the DNS resolution

Type: System.Net.Sockets.AddressFamily
DefaultValue: Unspecified
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Name

The name of the host to resolve

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[DnsHost]

{{ Fill in the Description }}

DnsHost

{{ Fill in the Description }}

NOTES

{{ Fill in the related links here }}