[arin-tech-discuss] why do I have error 400 bad request reuturned?

Andy Newton andy at arin.net
Tue Dec 2 12:28:07 EST 2014


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/ 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 <Sean.Zhao at CenturyLink.com<mailto:Sean.Zhao at CenturyLink.com>> wrote:

Hi All,
                Instead of checking the start ip and end ip, likehttp://whois.ote.arin.net/rest/ip/ and
http://whois.ote.arin.net/rest/ip/, do you have something likehttp://whois.ote.arin.net/rest/ip /<http://whois.ote.arin.net/rest/ip%20/>? 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 is not good enough because both ips are not swiped, but there are 8 ips, - are swiped. They are between the ip 65.127..160 and So if you have a netBlock checking, it would be great for me.


Sean Zhao
sean.zhao at centurylink.com<mailto:sean.zhao at centurylink.com>

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
arin-tech-discuss at arin.net<mailto:arin-tech-discuss at arin.net>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.arin.net/pipermail/arin-tech-discuss/attachments/20141202/c21c65a0/attachment.html>

More information about the arin-tech-discuss mailing list