I have the following command in my PHP class:
@exec('nslookup -type=' . $type . ' ' . escapeshellcmd($host), $output);
This doesn't run on my server because of security restrictions (exec
and escapeshellcmd
are disabled from php.ini). Is there any alternative that doesn't rely on exec
?
You can use dns_get_record()
:
http://www.php.net/dns_get_record
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With