any help ? I have to use that boring perl
Boring perl? I hardly think so....
an alternative would be:
function getDNSRecord($host)
{
ob_start();
passthru("/usr/bin/dig $host");
$lookup = ob_get_contents();
ob_end_clean();
// do more processing to $lookup...
return $lookup;
}