|
Revision 1870, 511 bytes
(checked in by benjamin, 1 year ago)
|
fixing issues with .eu.be and .name whois servers (new syntax) Fixes #571
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/usr/bin/php |
|---|
| 2 |
<?php |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
include("../bureau/class/m_err.php"); |
|---|
| 7 |
include("../bureau/class/m_dom.php"); |
|---|
| 8 |
|
|---|
| 9 |
$err=new m_err(); |
|---|
| 10 |
$dom=new m_dom(); |
|---|
| 11 |
|
|---|
| 12 |
$doms=array("dns.be","eurid.eu","sonntag.name","alternc.com","alternc.org","alternc.net","sonntag.fr"); |
|---|
| 13 |
foreach($doms as $d) { |
|---|
| 14 |
echo "\n"; |
|---|
| 15 |
echo "Searching for whois for domain [$d]\n"; |
|---|
| 16 |
$srv=$dom->whois($d); |
|---|
| 17 |
if (is_array($srv)) { |
|---|
| 18 |
foreach($srv as $s) { |
|---|
| 19 |
echo " Nameserver: $s\n"; |
|---|
| 20 |
} |
|---|
| 21 |
} else { |
|---|
| 22 |
echo " No nameserver found !\n"; |
|---|
| 23 |
} |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
?> |
|---|