PHP dns_check_record() İşlevi
Örnek
DNS kayıtlarını kontrol edin:
<?php
$domain="w3schools.com";
if(dns_check_record($domain,"MX")) {
echo
"Passed";
} else {
echo "Failed";
}
?>
Tanım ve Kullanım
dns_check_record() işlevi, checkdnsrr() işlevinin bir diğer adıdır .
Sözdizimi
dns_check_record(host, type)
Parametre Değerleri
Parameter | Description |
---|---|
host | Required. Specifies an IP address or host name to check |
type | Optional. Specifies the type. Can be one of the following:
|
Teknik detaylar
Geri dönüş değeri: | Herhangi bir kayıt bulunursa DOĞRU, aksi takdirde YANLIŞ |
---|---|
PHP Sürümü: | 5.0+ |
❮ PHP Ağ Referansı