[insert_php]
if($_POST) {
$domain = trim($_POST[‘_search’]);
echo “
NS Lookup for “.$domain.” |
“;
if($domain == ”) {
echo “
Invalid data |
“;
} else {
$dataArr = dns_get_record($domain);
echo “
TTL | HOST NAME |
‘.$value[‘ttl’].’ | ‘.$value[‘target’].’ |
“;
}
}
[/insert_php]