dns_get_record()
dns_get_record - Fetch DNS Resource Records associated with a hostname
Syntax
array dns_get_record ()
Arguments
-
Description
Fetch DNS Resource Records associated with the given hostname.
Version
PHP 5
Return value
This function returns an array of associative arrays. Each associative array contains at minimumthe following keys: Basic DNS attributes Attribute Meaning host The record in the DNS namespace to which the rest of the associated data refers. class dns_get_record() only returns Internet class records and as such this parameter will always return IN. type String containing the record type. Additional attributes will also be contained in the resulting array dependant on the value of type. See table below. ttl "Time To Live"remaining for this record. This will notequal the record's original ttl, but will rather equal the original ttl minus whatever length of time has passed since the authoritative name server was queried.