array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.checkdnsrr.php', 1 => 'checkdnsrr', ), 'up' => array ( 0 => 'ref.network.php', 1 => 'Network Functions', ), 'prev' => array ( 0 => 'ref.network.php', 1 => 'Network Functions', ), 'next' => array ( 0 => 'function.closelog.php', 1 => 'closelog', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/network/functions/checkdnsrr.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
checkdnsrr — Check DNS records corresponding to a given Internet host name or IP address
Searches DNS for records of type type
corresponding to hostname
.
hostname
hostname
may either be the IP address in
dotted-quad notation or the host name.
type
type
may be any one of: A, MX, NS, SOA,
PTR, CNAME, AAAA, A6, SRV, NAPTR, TXT or ANY.
Returns true
if any records are found; returns false
if no records
were found or if an error occurred.
Note:
For compatibility with Windows before this was implemented, then try the » PEAR class » Net_DNS.