summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-01-30 12:06:48 +0200
committerWarren Baker <warren@decoy.co.za>2014-01-30 12:06:48 +0200
commite2ffc9d35e68dc9301b66b343eb82cd4f674ba77 (patch)
treef5c03890c633a21d9ca2c2aa63244052d0960865 /usr
parent327a4fc65f7bd1ca4c3ee4622857c1efedd3088e (diff)
downloadpfsense-e2ffc9d35e68dc9301b66b343eb82cd4f674ba77.zip
pfsense-e2ffc9d35e68dc9301b66b343eb82cd4f674ba77.tar.gz
Dig is no longer available, drill is now the tool
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_dns.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php
index 900f562..07d7b57 100644
--- a/usr/local/www/diag_dns.php
+++ b/usr/local/www/diag_dns.php
@@ -47,8 +47,8 @@ if($_GET['createalias'] == "true") {
$resolved = gethostbyname($host);
if($resolved) {
$host = trim($_POST['host']);
- $dig=`dig "$host" A | grep "$host" | grep -v ";" | awk '{ print $5 }'`;
- $resolved = explode("\n", $dig);
+ $drill=`/usr/bin/drill "$host" A | grep "$host" | grep -v ";" | awk '{ print $5 }'`;
+ $resolved = explode("\n", $drill);
$isfirst = true;
foreach($resolved as $re) {
if($re <> "") {
@@ -104,7 +104,7 @@ if ($_POST) {
$resolvconf_servers = `grep nameserver /etc/resolv.conf | cut -f2 -d' '`;
$dns_servers = explode("\n", trim($resolvconf_servers));
foreach ($dns_servers as $dns_server) {
- $query_time = `dig {$host_esc} @{$dns_server} | grep Query | cut -d':' -f2`;
+ $query_time = `/usr/bin/drill {$host_esc} @{$dns_server} | grep Query | cut -d':' -f2`;
if($query_time == "")
$query_time = gettext("No response");
$new_qt = array();
@@ -130,8 +130,8 @@ if ($_POST) {
$type = "hostname";
$resolved = gethostbyname($host);
if($resolved) {
- $dig=`dig $host_esc A | grep $host_esc | grep -v ";" | awk '{ print $5 }'`;
- $resolved = explode("\n", $dig);
+ $drill=`/usr/bin/drill $host_esc A | grep $host_esc | grep -v ";" | awk '{ print $5 }'`;
+ $resolved = explode("\n", $drill);
}
$hostname = $host;
if ($host != $resolved)
OpenPOWER on IntegriCloud