Commit f6b3e1d5 authored by Pierre's avatar Pierre

print dns

parent 866f2c1f
......@@ -26,6 +26,7 @@ function mx_chez_dp ($domaine) {
$domaine = $parse['host']; // juste le nom de dom sans http
// spip_log("bureau ".$bureau,'test'._LOG_AVERTISSEMENT);
$result = dns_get_record($domaine, DNS_MX);
spip_log("serveur ".print_r($result),'test'._LOG_AVERTISSEMENT);
if( $result AND isset($result[0]['target'])){
// spip_log("serveur ".$result[0]['target'],'test'._LOG_AVERTISSEMENT);
$serveur = $result[0]['target'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment