mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Strip www. from domain names when performing whois lookups
This commit is contained in:
@@ -390,7 +390,7 @@ function getDomainRecords($name) {
|
||||
return $records;
|
||||
}
|
||||
|
||||
$domain = escapeshellarg($name);
|
||||
$domain = escapeshellarg(str_replace('www.', '', $name));
|
||||
$records['a'] = substr(trim(strip_tags(shell_exec("dig +short $domain"))), 0, 254);
|
||||
$records['ns'] = substr(trim(strip_tags(shell_exec("dig +short NS $domain"))), 0, 254);
|
||||
$records['mx'] = substr(trim(strip_tags(shell_exec("dig +short MX $domain"))), 0, 254);
|
||||
|
||||
Reference in New Issue
Block a user