any help ? I have to use that boring perl 😉 ?

    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;
    }

      thank you , It doesn't extract exactly dns reported from and internic whois however it 's ok for me (especially using dig) . thanks a lot .!

        Write a Reply...