Get DNS record with DNS_A type in PHP

Description

The following code shows how to get DNS record with DNS_A type.

Example


<?php
    $result = dns_get_record("example.com", DNS_A);
    print_r($result);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions