<?php
$hostname = $_GET['h'];
if (strlen($hostname) < 6) {
  exit;
}
$ip_addr = dns_get_record($hostname, DNS_A)[0]['ip'];
print_r($ip_addr);

?>
