The REST info page:4.3.3. MIME Types and File ExtensionsThe following table lists the data types and their associated MIME types and file extensions:
Problems: (1) formatting issue. http://whois.arin.net/rest/org/ATL-83/pocs.txt returns http://whois.arin.net/rest/poc/NOC3056-ARINhttp://whois.arin.net/rest/poc/NOC3056-ARINhttp://whois.arin.net/rest/poc/JCL171-ARINhttp://whois.arin.net/rest/poc/NOC3056-ARIN As opposed to what one can "swipe" from the web page:
So, the TXT output in this case has no line breaks and omits the function descriptions. Other similar TXT output more closely resembles what the web page shows. (2) missing information. Via the web, the URL http://whois.arin.net/rest/ip/209.144.225.62/orgs returns:
However, from the Unix command line curl -H "Accept: text/plain" http://whois.arin.net/rest/ip/209.144.225.62.txt returns this data: # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html # NetRange: 209.144.225.0 - 209.144.225.255 CIDR: 209.144.225.0/24 OriginAS: NetName: SAVV-S218155-6 NetHandle: NET-209-144-225-0-1 Parent: NET-209-144-0-0-1 NetType: Reallocated RegDate: 2007-09-20 Updated: 2007-09-20 Ref: http://whois.arin.net/rest/net/NET-209-144-225-0-1 # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html # Notice that there is no Organization Name. Ouch! for my purposes. (3A) Incorrect formats returned; (4A)Dead-end maze to get Organization Name due to apparent database mapping inconsistencies: I am trying to write a program which, given an IP address, returns * the associated NetRange, e.g. "209.144.225.0 - 209.144.225.255" * the Abuse POC associated with that netrange. Not getting the Organization Name in the command line call is making this a maze to accomplish, a dead-end as we'll see: If I do this: # curl -H "Accept: text/plain" http://whois.arin.net/rest/ip/209.144.225.62.txt # # ARIN WHOIS data and services are subject to the Terms of Use # available at: https://www.arin.net/whois_tou.html # NetRange: 209.144.225.0 - 209.144.225.255 CIDR: 209.144.225.0/24 OriginAS: NetName: SAVV-S218155-6 NetHandle: NET-209-144-225-0-1 Parent: NET-209-144-0-0-1 NetType: Reallocated RegDate: 2007-09-20 Updated: 2007-09-20 Ref: http://whois.arin.net/rest/net/NET-209-144-225-0-1 And then this: # curl -H "Accept: text/plain" http://whois.arin.net/rest/net/NET-209-144-225-0-1/pocs.txt http://whois.arin.net/rest/poc/JJ772-ARIN And then this: curl -H "Accept: text/plain" http://whois.arin.net/rest/poc/JJ772-ARIN/orgs.txt This is the output I get: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns:rdns="http://www.arin.net/whoisrws/rdns/v1" xmlns:pft="http://www.arin.net/whoisrws/pft/v1" xmlns:whois="http://www.arin.net/whoisrws/core/v1"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Whois-RWS</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta content="Virginia" name="geo.placename"> <meta content="USA" name="geo.country"> <meta name="viewport" content="width=990"> <meta name="Keywords" content=""> <meta name="Description" content=""> <style type="text/css"> ... VERY MUCH HTML SUPPRESSED ... <div id="content"> <h2 class="noauth">Whois-RWS </h2> <div id="maincontent"> <p style="margin:0;padding:0;"> <table> <tr> <th>No Related Resources</th> </tr> <tr> <td>No related resources were found for the handle provided.</td> </tr> </table> ... MORE HTML SUPPRESSED ... As you can see: I ASKED FOR TEXT and got HTML; and despite NET-209-144-225-0-1 belonging to "AppServe Technologies, LLC (ATL-83)" and having POC JJ772-ARIN, asking for the organization associated with JJ772-ARIN says "AIN'T NO SUCH THING." --> ????? So trying to get the organization from the command line, I am screwed. So I wonder if other formats can help ... (3B) Incorrect formats returned Asking for ip/#.#.#.#.txt did not return the ORGANIZATION NAME, as I pointed out above. However, asking for ip/#.#.#.#.json does. However! All of these calls curl http://whois.arin.net/rest/poc/JJ772-ARIN/orgs.json > org.json and curl -H "Accept: application/json" http://whois.arin.net/rest/poc/JJ772-ARIN/orgs.json > org.json and curl -H "Accept: application/xml" http://whois.arin.net/rest/poc/JJ772-ARIN/orgs.xml > org.xml Return HTML. Remember that "no information" was returned for JJ772-ARIN; maybe that has something to do with this bug. (4B) Apparent database mapping inconsistencies: There is this oddness with the database, that although NET=X ----> ORG=Y and NET=X ----> POC=Z we get POC=Z ----> ORG="NO RESULT", which is inconsistent. You would think that the information would be transitive and reflexive; that NET=X <----> ORG=Y is bidirectional, NET=X <----> POC=Z is bidirectional, and therefore POC=Z ----> NET=X ----> ORG=Y and not ORG = "NO RESULT", as demonstrated above. (5) In summary: It would appear you have not debugged your "format matrix" properly; 1. Different requested formats selectively omit various information. 2. Requests for specific formats are in various cases ignored. May or may not depend on whether a query returned a result. and 3. There may well be more going on underneath than meets my eye, but it seems the database mapping paths are not fully developed properly, since if A relates to B and A relates to C; then B relates to C; but you say it does not! (6) Suggested changes in offerings and documentation 1. The documentation is a little misleading. It says (underlining mine to call attention to a claim, bolding below mine to call attention to the rebuttal.) But this is not a complete list, because below you go on to say So you actually have EIGHT resources, not SIX. And since you DO have the "ip" and "cidr" resources, why not expand this list: I had wished to be able to do /ip/XXXX/orgs directly. Seems obvious; why not? I suggest making that (and similar extensions) possible; and I suggest including the "ip" and "cidr" as named resources that can be used along with the other six - that is largely a documentation fix. Thanks for your time and attention. Eric Dynamic (ED244-ARIN @ org/UCTELE-2) |
_______________________________________________ arin-tech-discuss mailing list [email protected] http://lists.arin.net/mailman/listinfo/arin-tech-discuss
