summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-04 05:03:21 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-04 05:03:21 -0400
commit0f00f800b9735fe8b2c5c366a9b3972039c317e0 (patch)
tree9b5d9ea666198ed98fe0d413603b38313d641d6f
parent76101cad516915c008ee5ca5b6d6c45dc54a7e03 (diff)
Use new shell_exec function for $config['dns_system'] `host` queries too
-rw-r--r--inc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index fe27a568..82f047b5 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1901,7 +1901,7 @@ function rDNS($ip_addr) {
if (!$config['dns_system']) {
$host = gethostbyaddr($ip_addr);
} else {
- $resp = shell_exec('host -W 1 ' . $ip_addr);
+ $resp = shell_exec_error('host -W 1 ' . $ip_addr);
if (preg_match('/domain name pointer ([^\s]+)$/', $resp, $m))
$host = $m[1];
else
@@ -1926,7 +1926,7 @@ function DNS($host) {
if ($ip_addr == $host)
$ip_addr = false;
} else {
- $resp = shell_exec('host -W 1 ' . $host);
+ $resp = shell_exec_error('host -W 1 ' . $host);
if (preg_match('/has address ([^\s]+)$/', $resp, $m))
$ip_addr = $m[1];
else