ajout support TLD .coop

This commit is contained in:
mlutfy 2010-08-30 20:16:01 +00:00
parent 7f8bbe9885
commit e2a3c45f1c
1 changed files with 9 additions and 0 deletions

View File

@ -382,6 +382,9 @@ class m_dom {
case "re":
$serveur="whois.nic.re";
break;
case "coop":
$serveur="whois.nic.coop";
break;
default:
$err->raise("dom",7);
return false;
@ -475,6 +478,12 @@ class m_dom {
}
}
break;
case "coop":
if (preg_match('/Host Name:\s*([^\s]+)/', $ligne, $matches)) {
$found = true;
$server[] = $matches[1];
echo "Found NS = " . $matches[1] . "<br>";
}
} // switch
} // while
fclose($fp);