ArinWhois.NET icon indicating copy to clipboard operation
ArinWhois.NET copied to clipboard

Resolving 4.4.4.4 to Organization using the handle does not resolve

Open keithjjones opened this issue 10 years ago • 1 comments

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;

keithjjones avatar Sep 28 '15 15:09 keithjjones

This has been fixed in pull request #2. Once it is accepted you can close this issue.

keithjjones avatar Jan 14 '16 21:01 keithjjones