Skip to content

A library for getting detailed data about the host\IP address from various WHOIS servers. Implemented on - .NET Standard 2.0

License

Notifications You must be signed in to change notification settings

hekkaaa/WhoisObserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhoisObserver

The program aggregates a number of whois servers. Creates the necessary request and interprets the response into a common object.

Servers used:

Example

Async version

using WhoisObserver;
using WhoisObserver.Services.Model;
...

async void Test1()
{
    var st0 = new WhoisClient();
    var st1 = st0.GetResponceJsonAsync("ya.ru", ServersClientFamily.IpApi).Result;
    Console.WriteLine(st1.CountryCode);
}

Test1();

image

using WhoisObserver;
using WhoisObserver.Services.Model;
...

async void Test2()
{
    var st0 = new WhoisClient();
    var st1 = st0.GetResponceModelAsync("13.228.116.142", ServersClientFamily.IpApi).Result;
    Console.WriteLine(st1.CountryCode);
}

Test2());

image

Download

Nuget reference

Dependencies

  • .NETStandard 2.0
  • AutoMapper (>= 10.1.1)
  • Newtonsoft.Json (>= 13.0.1)
  • System.Net.Http.Json (>= 6.0.0)
  • System.Text.Json (>= 6.0.5)

Feedback and bug reports

Telegram: https://t.me/Hekkaaa

Email: silencemyalise@gmail.com

About

A library for getting detailed data about the host\IP address from various WHOIS servers. Implemented on - .NET Standard 2.0

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages