Module Name | online version | schema |
---|---|---|
Get-WHOIS |
2.0.0 |
https://www.powershellgallery.com/packages/Get-WHOIS/
Install-Module -Name Get-WHOIS
Gets WHOIS information for a domain name by querying the WHOIS server for the domain name.
Get-WHOIS [-DomainName] <String> [[-OutputFormat] <String>] [[-whoisServer] <String>] [[-whoisPort] <Int32>]
[<CommonParameters>]
Queries the WHOIS server for a domain name and returns summary information by default, the Registrar, Creation Date, Expiration Date, and DNS Name Servers. The WHOIS server is determined by the TLD of the domain name, unless specified.
Get-WHOIS -DomainName "whois-servers.net"
This will return the following information:
DomainName : whois-servers.net
CreationDate : 1999-03-31 12:00:00 AM
DaysUntilExpiration : 162
ExpirationDate : 2024-03-31 12:00:00 AM
NameServers : {UDNS1.ULTRADNS.NET, UDNS2.ULTRADNS.NET}
Registrar : TucowsDomainsInc.
WhoisServerName : whois.verisign-grs.com
Get-WHOIS -DomainName "whois-servers.net" -OutputFormat "detail"
This will return the full WHOIS response for the domain name.
The domain name to query in FQDN format.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The output format for the WHOIS information. Valid values are "summary" and "detail".
"summary" is the default value and returns a PSCustomObject with Properties: DomainName, CreationDate, DaysUntilExpiration, ExpirationDate, NameServers, Registrar, WhoisServerName
"detail" returns the full WHOIS response.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Summary
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The port to use when querying the WHOIS server. If not specified, the default port of 43 is used.
Type: System.Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: 43
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The FQDN of a WHOIS server to query for the domain name. If not specified, the WHOIS server is determined by the TLD of the domain name.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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.
Type: Selected.System.Management.Automation.PSCustomObject
Author: Robert D.Biddle Date: 2023-10-18 Get-WHOIS - PowerShell Module to lookup WHOIS information for a domain name. Copyright (C) 2023 Robert D. Biddle
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/\>.