andre %!s(int64=2) %!d(string=hai) anos
pai
achega
d77c68e02e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      testdns.php

+ 1 - 1
testdns.php

@@ -9,7 +9,7 @@ function cwp7CheckSOA($domain, $nameserverIP, $nameserverName ) {
 	$nameserver = array($nameserverIP);
 	$resolver = new Net_DNS2_Resolver(array('nameservers' => $nameserver));
     try {
-            $result = $resolver->query($domain, 'SOA');
+            $result = $resolver->query($domain, 'NS');
             
     } catch(Net_DNS2_Exception $e) {
 		return 'none';