Sean,

Yes there is a way to do that. Depending on the logic you are using, 
/cidr/xxx.xxx.xxx.xxx/yy[/more|less] queries are probably what you are looking 
for. For instance, http://whois.arin.net/rest/cidr/192.149.252.0/24/more will 
list the networks more specific to the CIDR given. /more gives you a list of 
networks more specific, /less gives you a list of networks less specific, and 
if you do not use either it will return a network if it is exactly matching the 
CIDR.

The documentation for that query is here: 
https://www.arin.net/resources/whoisrws/whois_api.html#whoisrws under section 
4.4.3.

I hope that helps.

Andy Newton,
Chief Engineer, ARIN

On Dec 1, 2014, at 3:59 PM, Zhao, Sean 
<[email protected]<mailto:[email protected]>> wrote:

Hi All,
                Instead of checking the start ip and end ip, 
likehttp://whois.ote.arin.net/rest/ip/65.127.10.160 and
http://whois.ote.arin.net/rest/ip/65.127.10.191, do you have something 
likehttp://whois.ote.arin.net/rest/ip 
/65.127.10.160/maskNo/27<http://whois.ote.arin.net/rest/ip%20/65.127.10.160/maskNo/27>?
 So we can check if the netBlock is swiped in one call instead checking by ip 
addresses for 32 times.
In this case of mine, checking only 65.127..160 and 65.127.10.191 is not good 
enough because both ips are not swiped, but there are 8 ips, 65.127.10.176 - 
65.127.10.183 are swiped. They are between the ip 65.127..160 and 
65.127.10.191. So if you have a netBlock checking, it would be great for me.

Thanks

Sean Zhao
[email protected]<mailto:[email protected]>

This communication is the property of CenturyLink and may contain confidential 
or privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful. If you have received this communication in 
error, please immediately notify the sender by reply e-mail and destroy all 
copies of the communication and any attachments.
_______________________________________________
arin-tech-discuss mailing list
[email protected]<mailto:[email protected]>
http://lists.arin.net/mailman/listinfo/arin-tech-discuss

_______________________________________________
arin-tech-discuss mailing list
[email protected]
http://lists.arin.net/mailman/listinfo/arin-tech-discuss

Reply via email to