I have the following command in my PHP class:
@exec('nslookup -type=' . $type . ' ' . escapeshellcmd($host), $output);
This does not work on my server due to security restrictions ( exec and escapeshellcmd disconnected from php.ini). Is there an alternative that doesn't rely on exec ?
source share