Fetch DNS Resource Records associated with a hostname in PHP
Description
The following code shows how to fetch DNS Resource Records associated with a hostname.
Example
<?php
$result = dns_get_record("example.com");
print_r($result);
?>
The code above generates the following result.