Fungsi PHP dns_check_record()
Contoh
Periksa catatan DNS:
<?php
$domain="w3schools.com";
if(dns_check_record($domain,"MX")) {
echo
"Passed";
} else {
echo "Failed";
}
?>
Definisi dan Penggunaan
Fungsi dns_check_record() adalah alias dari fungsi checkdnsrr() .
Sintaksis
dns_check_record(host, type)
Nilai Parameter
Parameter | Description |
---|---|
host | Required. Specifies an IP address or host name to check |
type | Optional. Specifies the type. Can be one of the following:
|
Detail Teknis
Nilai Kembali: | BENAR jika ada catatan yang ditemukan, SALAH jika sebaliknya |
---|---|
Versi PHP: | 5.0+ |
Referensi Jaringan PHP