From tarig.shoush at bt.com Wed Jun 18 16:01:29 2014 From: tarig.shoush at bt.com (tarig.shoush at bt.com) Date: Wed, 18 Jun 2014 21:01:29 +0100 Subject: [arin-tech-discuss] This is getting a little irritating ... In-Reply-To: <52C8B087.8070606@transpacific.net> References: <52C39A54.8040901@transbay.net> <52C8B087.8070606@transpacific.net> Message-ID: <349517F84C33D242A300902A2FF5AF620A899E1C92@EMV02-UKBR.domain1.systemhost.net> Eric, I checked with our development, the reason we are getting this is because the zone is not dynamic -not updateable- and the server is not the Master for that zone. Ideally we want 'Notify' coming only from the Master server and for dynamic zones only. As of 172.17.32.2 seems to be affected, my guess is that you took the log file before that 'authentication' was cached for that server/zone. In short this too is benign error and shall go away once we update the database. Best regards, Tarig Shoush From: arin-tech-discuss-bounces at arin.net [mailto:arin-tech-discuss-bounces at arin.net] On Behalf Of Eric Dynamic Sent: Saturday, January 04, 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 rchien at 3ecompany.com Wed Jun 18 16:10:30 2014 From: rchien at 3ecompany.com (Ryan Chien) Date: Wed, 18 Jun 2014 20:10:30 +0000 Subject: [arin-tech-discuss] This is getting a little irritating ... In-Reply-To: <349517F84C33D242A300902A2FF5AF620A899E1C92@EMV02-UKBR.domain1.systemhost.net> References: <52C39A54.8040901@transbay.net> <52C8B087.8070606@transpacific.net> <349517F84C33D242A300902A2FF5AF620A899E1C92@EMV02-UKBR.domain1.systemhost.net> Message-ID: <89E07553B7C97F4280046EBFAB789EBC7A5E2272@EXCH06.3ecorp.com> Cool script. Thanks, Ryan Chien Senior Network Engineer 3E Company T: 760-602-8689 F: 760-918-4007 From: arin-tech-discuss-bounces at arin.net [mailto:arin-tech-discuss-bounces at arin.net] On Behalf Of tarig.shoush at bt.com Sent: Wednesday, June 18, 2014 1:01 PM To: ecsd at transpacific.net; arin-tech-discuss at arin.net Subject: Re: [arin-tech-discuss] This is getting a little irritating ... Eric, I checked with our development, the reason we are getting this is because the zone is not dynamic -not updateable- and the server is not the Master for that zone. Ideally we want 'Notify' coming only from the Master server and for dynamic zones only. As of 172.17.32.2 seems to be affected, my guess is that you took the log file before that 'authentication' was cached for that server/zone. In short this too is benign error and shall go away once we update the database. Best regards, Tarig Shoush From: arin-tech-discuss-bounces at arin.net [mailto:arin-tech-discuss-bounces at arin.net] On Behalf Of Eric Dynamic Sent: Saturday, January 04, 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 mkfmncom at gmail.com Thu Jun 19 10:35:41 2014 From: mkfmncom at gmail.com (Matt Kaufman) Date: Thu, 19 Jun 2014 14:35:41 +0000 (UTC) Subject: [arin-tech-discuss] Invitation to connect on LinkedIn Message-ID: <2112079140.18173505.1403188541945.JavaMail.app@ela4-app8065.prod> LinkedIn ------------ I'd like to add you to my professional network on LinkedIn. - Matt Matt Kaufman CEO at MI2 Greater New York City Area Confirm that you know Matt Kaufman: https://www.linkedin.com/e/-ptg5q3-hwm688ac-4e/isd/5885399293371637760/43lqMdAD/?hs=false&tok=1-1zzFnJ9HSmg1 -- You are receiving Invitation to Connect emails. Click to unsubscribe: http://www.linkedin.com/e/-ptg5q3-hwm688ac-4e/B26MF5pj7g8PY8AusjI0IaqiANvZy456bETQ5WCY/goo/arin-tech-discuss%40arin%2Enet/20061/I7294698230_1/?hs=false&tok=0BhleVCu9HSmg1 (c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA. -------------- next part -------------- An HTML attachment was scrubbed... URL: