From markk at arin.net Thu Jan 2 14:57:48 2014 From: markk at arin.net (Mark Kosters) Date: Thu, 2 Jan 2014 19:57:48 +0000 Subject: [arin-tech-discuss] Maintenance Notice on the OT&E Registration System Message-ID: Hi On Jan 3, 2014 from 11:0AM until 5:00PM EST, the OT&E Registration System will be down for maintenance. All production services will remain in operation before, during, and after this maintenance period. Regards, Mark Kosters From ecsd at transpacific.net Sat Jan 4 20:08:23 2014 From: ecsd at transpacific.net (Eric Dynamic) Date: Sat, 04 Jan 2014 17:08:23 -0800 Subject: [arin-tech-discuss] This is getting a little irritating ... In-Reply-To: <52C39A54.8040901@transbay.net> References: <52C39A54.8040901@transbay.net> Message-ID: <52C8B087.8070606@transpacific.net> An HTML attachment was scrubbed... URL: From andy at arin.net Wed Jan 8 16:17:30 2014 From: andy at arin.net (Andy Newton) Date: Wed, 8 Jan 2014 21:17:30 +0000 Subject: [arin-tech-discuss] This is getting a little irritating ... In-Reply-To: <52C8B087.8070606@transpacific.net> Message-ID: Eric, I cannot replicate your problem. For the query you specify, JSON is being returned. See below: $ curl http://whois.arin.net/rest/ip/204.12.8.28.json {"net":{"@xmlns":{"ns3":"http:\/\/www.arin.net\/whoisrws\/netref\/v2","ns2":"http:\/\/www.arin.net\/whoisrws\/rdns\/v1","$":"http:\/\/www.arin.net\/whoisrws\/core\/v1"},"@termsOfUse":"https:\/\/www.arin.net\/whois_tou.html","registrationDate":{"$":"2011-02-03T11:23:31-05:00"},"ref":{"$":"http:\/\/whois.arin.net\/rest\/net\/NET-204-12-8-24-1"},"customerRef":{"@name":"Stylelife","@handle":"C02687103","$":"http:\/\/whois.arin.net\/rest\/customer\/C02687103"},"endAddress":{"$":"204.12.8.31"},"handle":{"$":"NET-204-12-8-24-1"},"name":{"$":"STYLELIFE"},"netBlocks":{"netBlock":{"cidrLength":{"$":"29"},"endAddress":{"$":"204.12.8.31"},"description":{"$":"Reassigned"},"type":{"$":"S"},"startAddress":{"$":"204.12.8.24"}}},"originASes":{"originAS":{"$":"AS20021"}},"parentNetRef":{"@name":"HOSTMYSITE","@handle":"NET-204-12-0-0-1","$":"http:\/\/whois.arin.net\/rest\/net\/NET-204-12-0-0-1"},"startAddress":{"$":"204.12.8.24"},"updateDate":{"$":"2011-02-03T11:23:31-05:00"},"version":{"$":"4"}}} If you can provide the date and time this anomaly occurred, we can check our server logs to see if there were any issues on our side. Andy Newton, Chief Engineer, ARIN From: Eric Dynamic > Date: Saturday, January 4, 2014 8:08 PM To: "arin-tech-discuss at arin.net" > Subject: [arin-tech-discuss] This is getting a little irritating ... Now after having written a script that worked marvelously for at least several says, all of a sudden now it is failing. Why? Because once again, your service is returning what it feels like versus what I asked for. Here is what I got from asking for JSON: processing 204.12.8.28 xmlns:ns2="http://www.arin.net/whoisrws/rdns/v1" xmlns:ns3="http://ww w.arin.net/whoisrws/netref/v2" termsOfUse="https://www.arin.net/whois_tou.html">2011-02-03T11:23:31-05:00http://whois.arin.net/rest/net/NET-204-12-8-24-1http://whois.arin.net/rest/customer/C02687103204.12.8.31NET-204-12-8-24-1STYLELIFE29204.12.8.31ReassignedS204.12.8.24AS20021http://whois.arin.net/rest/net/NET-204-12-0-0-1204.12.8.242011-02-03T11:23:31-05:004 204.12.8.28 no ns4:pft Now I am getting XML. I don't have time to keep figuring out new parsers. I already write the code for the JSON. And it was working, as I said, for several days just fine. Now for no reason I can see, suddenly, asking for JSON gives me XML. I don't feel like writing something that has to try to figure out what you actually sent versus what I requested. This time I request that you FIX THIS. ================= #!/usr/local/bin/php afrom <= $AA <= $r->ato *$r->contact), ignoring request.\n"; continue; } curl_setopt($C,CURLOPT_URL,"http://whois.arin.net/rest/ip/$A/pft.json"); $pft = curl_exec($C); echo "$pft\n"; // gives the output shown above for($rc = 1;;) { if(!$pft) { echo "$A: no pft\n"; break; } $Q = json_decode($pft,true); $Q = $Q["ns4:pft"]; if(!$Q) { echo "$A no ns4:pft\n"; break; } if(!isset($Q["poc"])) { echo "$A: no poc\n"; break; } if(!isset($Q["poc"][0])) { echo "$A: no poc[0]\n"; break; } $F = $Q["net"]["startAddress"]["$"]; if( 4 != sscanf($F,"%d.%d.%d.%d",&$n3,&$n2,&$n1,&$n0) ) break; $afrom = sprintf("%02X%02X%02X%02X",$n3,$n2,$n1,$n0); $T = $Q["net"]["endAddress"]["$"]; if( 4 != sscanf($T,"%d.%d.%d.%d",&$n3,&$n2,&$n1,&$n0) ) break; $ato = sprintf("%02X%02X%02X%02X",$n3,$n2,$n1,$n0); if( $afrom > $ato ) break; $n = count($Q["poc"]); $contact = ""; for( $j = 0; $j < $n; $j++ ) { //echo "$A poc $j description " . $Q["poc"][$j]["@relatedDescription"] ."\n"; if($Q["poc"][$j]["@relatedDescription"] == "Abuse") { $m = count($Q["poc"][$j]["emails"]["email"]); // we either get [$] or [0]...[n] in this modern world if($m == 1) { $contact = $Q["poc"][$j]["emails"]["email"]["$"]; //echo "single records, $contact.\n"; } else { // save the first contact in any case and if it or a later one contains "abuse", use that. $contact = strtolower($Q["poc"][$j]["emails"]["email"][0]); //echo "$A multiple records, default $contact.\n"; if(strstr($contact,"abuse")) break; else for($k=1, $x = strtolower($Q["poc"][$j]["emails"]["email"][$k]); $k<$m;$k++) if(strstr($x,"abuse")) { $contact = $x; break; } echo "$A multiple records, using $contact.\n"; } break; } } if(!$contact || $contact == "abuse at ripe.net" || $contact == "abuse at arin.net" || $contact == "abuse at apnic.net") break; // if abuse at ripe.net e.g. then should ask RIPE. echo "RESULT:: $afrom - $ato\t$contact\n"; $afrom = sprintf("%08X",$afrom); $ato = sprintf("%08X",$ato); gqquery("insert into abuse (afrom,ato,contact) values ('$afrom','$ato','$contact')"); gqquery("update counts set count = count + 1 where class='database/reqfilled'"); $rc = 0; break; } // we no longer insert (a,0) into abuse to remember what we want. } curl_close($C); //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From karriecorulla61 at gmail.com Thu Jan 30 17:19:35 2014 From: karriecorulla61 at gmail.com (Khadijah Karrie Corulla) Date: Thu, 30 Jan 2014 14:19:35 -0800 Subject: [arin-tech-discuss] (no subject) Message-ID: Accept -- karriecorulla61 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From karriecorulla61 at gmail.com Thu Jan 30 17:24:11 2014 From: karriecorulla61 at gmail.com (Khadijah Karrie Corulla) Date: Thu, 30 Jan 2014 14:24:11 -0800 Subject: [arin-tech-discuss] (no subject) Message-ID: I request Apache/2.2.3(centOS)Server at list.arin.net -- karriecorulla61 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From karriecorulla61 at gmail.com Fri Jan 31 22:39:42 2014 From: karriecorulla61 at gmail.com (Khadijah Karrie Corulla) Date: Fri, 31 Jan 2014 19:39:42 -0800 Subject: [arin-tech-discuss] (no subject) Message-ID: Agree -- karriecorulla61 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From zdillon at poly-packaging.com Fri Jan 31 22:59:08 2014 From: zdillon at poly-packaging.com (Zach Dillon) Date: Fri, 31 Jan 2014 21:59:08 -0600 Subject: [arin-tech-discuss] (no subject) In-Reply-To: References: Message-ID: Wrong email On Jan 31, 2014 9:47 PM, "Khadijah Karrie Corulla" < karriecorulla61 at gmail.com> wrote: > Agree > > -- > karriecorulla61 at gmail.com > > _______________________________________________ > arin-tech-discuss mailing list > arin-tech-discuss at arin.net > http://lists.arin.net/mailman/listinfo/arin-tech-discuss > > -------------- next part -------------- An HTML attachment was scrubbed... URL: