(*e.g. techoism.com)

[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 “

“;
foreach($dataArr as $value) {

if($value[‘type’] == ‘NS’) {
echo ‘

‘;
}

}
echo “

TTLHOST NAME
‘.$value[‘ttl’].’‘.$value[‘target’].’

“;
}
}
[/insert_php]