fixing issues with .eu.be and .name whois servers (new syntax) Fixes #571
This commit is contained in:
parent
e8299927e9
commit
4fa397c6c3
|
@ -351,6 +351,7 @@ src/slave_dns -text
|
||||||
src/spoolsize.php -text
|
src/spoolsize.php -text
|
||||||
src/sqlbackup.sh -text
|
src/sqlbackup.sh -text
|
||||||
src/update_domains.sh -text
|
src/update_domains.sh -text
|
||||||
|
tests/whois_test.php -text
|
||||||
tools/get_account_by_domain -text
|
tools/get_account_by_domain -text
|
||||||
tools/get_domains_by_account -text
|
tools/get_domains_by_account -text
|
||||||
tools/top_ftp_users -text
|
tools/top_ftp_users -text
|
||||||
|
|
|
@ -336,6 +336,7 @@ class m_dom {
|
||||||
break;
|
break;
|
||||||
case "name":
|
case "name":
|
||||||
$serveur="whois.nic.name";
|
$serveur="whois.nic.name";
|
||||||
|
$egal="domain = ";
|
||||||
break;
|
break;
|
||||||
case "ws":
|
case "ws":
|
||||||
$serveur="whois.samoanic.ws";
|
$serveur="whois.samoanic.ws";
|
||||||
|
@ -392,7 +393,7 @@ class m_dom {
|
||||||
break;
|
break;
|
||||||
case "eu":
|
case "eu":
|
||||||
case "be":
|
case "be":
|
||||||
$ligne=ereg_replace(chr(10), "",ereg_replace(chr(13),"",ereg_replace(" ","", $ligne)));
|
$ligne=preg_replace("/^ *([^ ]*) \(.*\)$/","\\1",trim($ligne));
|
||||||
if($found)
|
if($found)
|
||||||
$tmp = trim($ligne);
|
$tmp = trim($ligne);
|
||||||
if ($tmp)
|
if ($tmp)
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// test de la fonction whois :
|
||||||
|
|
||||||
|
include("../bureau/class/m_err.php");
|
||||||
|
include("../bureau/class/m_dom.php");
|
||||||
|
|
||||||
|
$err=new m_err();
|
||||||
|
$dom=new m_dom();
|
||||||
|
|
||||||
|
$doms=array("dns.be","eurid.eu","sonntag.name","alternc.com","alternc.org","alternc.net","sonntag.fr");
|
||||||
|
foreach($doms as $d) {
|
||||||
|
echo "\n";
|
||||||
|
echo "Searching for whois for domain [$d]\n";
|
||||||
|
$srv=$dom->whois($d);
|
||||||
|
if (is_array($srv)) {
|
||||||
|
foreach($srv as $s) {
|
||||||
|
echo " Nameserver: $s\n";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo " No nameserver found !\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue