(*e.g. techoism.com)

[insert_php]
if($_POST) {
$domain = trim($_POST[‘_search’]);
echo “

A records Lookup for “.$domain.”

“;
if($domain == ”) {
echo “

Invalid data

“;
} else {
$dataArr = dns_get_record($domain);
echo “

“;
foreach($dataArr as $value) {

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

‘;
}

}
echo “

TTLIP ADDRESS
‘.$value[‘ttl’].’‘.$value[‘ip’].’

“;
}
}
[/insert_php]