Resolve-DnsHost¶
SYNOPSIS¶
Resolves a hostname to an IP address.
SYNTAX¶
Resolve-DnsHost [-Name] <String> [[-AddressFamily] <AddressFamily>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
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¶
-Name¶
The name of the host to resolve
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-AddressFamily¶
The address family to use for the DNS resolution
Type: AddressFamily
Parameter Sets: (All)
Aliases:
Accepted values: Unspecified, Unix, InterNetwork, ImpLink, Pup, Chaos, NS, Ipx, Iso, Osi, Ecma, DataKit, Ccitt, Sna, DecNet, DataLink, Lat, HyperChannel, AppleTalk, NetBios, VoiceView, FireFox, Banyan, Atm, InterNetworkV6, Cluster, Ieee12844, Irda, NetworkDesigners, Max, Packet, ControllerAreaNetwork, Unknown
Required: False
Position: 2
Default value: Unspecified
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.