dns_get_record(PHP 5) dns_get_record — Fetch DNS Resource Records associated with a hostname Описание
array dns_get_record
( string $hostname
[, int $type
] )
array dns_get_record
( string $hostname
, int $type
, array &$authns
, array &$addtl
)
Fetch DNS Resource Records associated with the given hostname . Список параметров
Возвращаемые значенияThis function returns an array of associative arrays. Each associative array contains at minimum the following keys:
Примеры
Пример #1 Using dns_get_record()
<?phpРезультатом выполнения данного примера будет что-то подобное:
Пример #2 Using dns_get_record() and DNS_ANY Since it's very common to want the IP address of a mail server once the MX record has been resolved, dns_get_record() also returns an array in addtl which contains associate records. authns is returned as well containing a list of authoritative name servers.
<?phpРезультатом выполнения данного примера будет что-то подобное:
|
|
|
| © 2009 Тест скорости интернета | Boont.Ru |