dns_check_record
alias of checkdnsrr
dns_check_record()
function is an alias for checkdnsrr()
function.
Check DNS records:
<?php $domain = "gitbox.net" ; if ( dns_check_record ( $domain , "MX" ) ) { echo "by" ; } else { echo "failed" ; } ?>
dns_check_record ( host , type )
parameter | describe |
---|---|
host | Required. Specifies the IP address or host name to check. |
type |
Optional. Specify the type. It can be one of the following:
|