Check DNS records:
<?php
$domain="91xjr.com";
if(dns_check_record($domain,"MX")) {
echo "Passed";
} else {
echo "Failed";
}
?>
The dns_check_record() function is an alias of the checkdnsrr() function.
dns_check_record(
host,
type)
Parameter | Description |
---|---|
host | Required. Specifies an IP address or host name to check |
type | Optional. Specifies the type. Can be one of the following:
|
Return Value: | TRUE if any records are found, FALSE otherwise |
---|---|
PHP Version: | 5.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!