ArinWhois.NET
ArinWhois.NET copied to clipboard
Resolving 4.4.4.4 to Organization using the handle does not resolve
The following code does not provide the same output as whois.arin.net (when IP = 4.4.4.4) and throws an exception:
ArinWhois.Client.ArinClient myArinClient = new ArinWhois.Client.ArinClient(); var myWhoIsResults = myArinClient.QueryIpAsync(IP).Result;
var myWhoIsOrgResults = myArinClient.QueryResourceAsync(myWhoIsResults.Network.OrgRef.Handle, ArinWhois.Client.ArinClient.ResourceType.Organization).Result;
mywhoisorgname = myWhoIsOrgResults.Organization.Name.Value; mywhoisorgcity = myWhoIsOrgResults.Organization.City.Value; mywhoisorgpostalcode = myWhoIsOrgResults.Organization.PostalCode.Value; mywhoispocrawlink = myWhoIsOrgResults.PointOfContact.Ref.Value;
This has been fixed in pull request #2. Once it is accepted you can close this issue.