WhoisClient.NET 4.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package WhoisClient.NET --version 4.0.0
NuGet\Install-Package WhoisClient.NET -Version 4.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WhoisClient.NET" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WhoisClient.NET --version 4.0.0
#r "nuget: WhoisClient.NET, 4.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WhoisClient.NET as a Cake Addin
#addin nuget:?package=WhoisClient.NET&version=4.0.0

// Install WhoisClient.NET as a Cake Tool
#tool nuget:?package=WhoisClient.NET&version=4.0.0

WhoisClient.NET NuGet Package unit tests

Project Description

This is .NET Class library implementing a WHOIS client.

How to install

To install this library into your application, use the NuGet repository.

PM> Install-Package WhoisClient.NET

Sample source code (C#)

Async version

using Whois.NET;
...
private async Task QueryByIPAddress()
{
  var result = await WhoisClient.QueryAsync("8.8.8.8");
  
  Console.WriteLine("{0} - {1}", result.AddressRange.Begin, result.AddressRange.End); // "8.8.8.0 - 8.8.8.255"
  Console.WriteLine("{0}", result.OrganizationName); // "Google Inc. LVLT-GOGL-8-8-8 (NET-8-8-8-0-1)"
  Console.WriteLine(string.Join(" > ", result.RespondedServers)); // "whois.iana.org > whois.arin.net" 
}

private async Task QueryByDomain()
{
  var result = await WhoisClient.QueryAsync("google.com");
  
  Console.WriteLine("{0}", result.OrganizationName); // "Google Inc."
  Console.WriteLine(string.Join(" > ", result.RespondedServers)); // "whois.iana.org > whois.verisign-grs.com > whois.markmonitor.com" 
}

Sync version

using Whois.NET;
...
private void QueryByIPAddress()
{
  var result = WhoisClient.Query("8.8.8.8");
  
  Console.WriteLine("{0} - {1}", result.AddressRange.Begin, result.AddressRange.End); // "8.8.8.0 - 8.8.8.255"
  Console.WriteLine("{0}", result.OrganizationName); // "Google Inc. LVLT-GOGL-8-8-8 (NET-8-8-8-0-1)"
  Console.WriteLine(string.Join(" > ", result.RespondedServers)); // "whois.iana.org > whois.arin.net" 
}

private async void QueryByDomain()
{
  var result = WhoisClient.Query("google.com");
  
  Console.WriteLine("{0}", result.OrganizationName); // "Google Inc."
  Console.WriteLine(string.Join(" > ", result.RespondedServers)); // "whois.iana.org > whois.verisign-grs.com > whois.markmonitor.com" 
}

Supported Framework

v.4.x

  • .NET Standard 2.0
    • .NET 5 or later
    • .NET Core 2.0 or later
    • .NET Frameword v.4.6.2 or later

v.3.x

  • .NET Core 1.1 or later (.NET Standard 1.4)
  • .NET Frameword v.4.5 or later

NOTICE - WhoisClient.NET v.3.x is no longer supported .NET Framework 4.0.

v.2.x

  • .NET Frameword v.4.0 or later

NOTICE - WhoisClient.NET v.2.x isn't supported .NET Core.

Async version for .NET Framework 4.0

WhoisClient.NET ver.2.x support "async" version methods for also .NET Framework 4.0 with powered by Microsoft.Bcl.Async NuGet package.

But if you don't want get dependencies for Microsoft.Bcl.Async and no need "async" version method, you can stay using v.1.x by like the follow install command.

PM> Install-Package WhoisClient.NET -Version 1.1.1

Release notes

The release notes is here.

License

Microsoft Public License

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on WhoisClient.NET:

Package Downloads
Yanga.Module.Api.Utilities

Api utilities , connect to external API

WhoisApp

WhoIs App is application to retrieve public data about domains, owners. Project contains library which is able to retrieve WHOIS data.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 15,197 6/3/2023
4.0.0 19,450 8/23/2022
3.0.1 86,009 7/20/2018
3.0.0 23,561 7/4/2017
3.0.0-beta 1,158 5/21/2017
2.0.1 10,129 10/21/2016
2.0.0 1,369 10/20/2016
1.1.1 1,466 10/20/2016
1.1.0 2,097 2/4/2016
1.0.2 6,638 3/27/2014
1.0.1 2,435 10/9/2012
1.0.0 1,830 5/23/2012

To see all the change logs, please visit the following URL.
- https://github.com/jsakamoto/WhoisClient.NET/blob/master/RELEASE-NOTES.txt