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