Looks up DNS info, given a hostname or address.
Get-Dns.ps1 [-HostName] <String[]> [-OnlyAddresses <AddressFamily>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-Dns.ps1 www.google.com
HostName Aliases AddressList ——– ——- ———– www.google.com {} {172.217.10.132}
A host name or address to look up.
Type: String[]
Parameter Sets: (All)
Aliases: Address, HostAddress, Name
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Indicates that only the string versions of addresses belonging to the specified family should be returned. “Unknown” returns all addresses.
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: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.