Return details of mail exchanger records (MX records):
<?php
$domain="91xjr.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key => $value <br>";
}
}
?>
The dns_get_mx() function is an alias of the getmxrr() function.
dns_get_mx(
host,
mxhosts, weight)
Parameter | Description |
---|---|
host | Required. Specifies the host name |
mxhosts | Required. An array that specifies a list of MX records found |
weight | Optional. An array that specifies the weight information gathered |
Return Value: | TRUE if any records are found, FALSE otherwise |
---|---|
PHP Version: | 5.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!