PHP dns_check_record() Funksie
Voorbeeld
Gaan DNS-rekords na:
<?php
$domain="w3schools.com";
if(dns_check_record($domain,"MX")) {
echo
"Passed";
} else {
echo "Failed";
}
?>
Definisie en gebruik
Die dns_check_record()-funksie is 'n alias van die checkdnsrr()- funksie.
Sintaksis
dns_check_record(host, type)
Parameterwaardes
Parameter | Description |
---|---|
host | Required. Specifies an IP address or host name to check |
type | Optional. Specifies the type. Can be one of the following:
|
Tegniese besonderhede
Terugkeerwaarde: | WAAR indien enige rekords gevind word, anders ONWAAR |
---|---|
PHP weergawe: | 5,0+ |
❮ PHP-netwerkverwysing