Index: troll.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/troll/troll.admin.inc,v
retrieving revision 1.1.2.15
diff -u -p -r1.1.2.15 troll.admin.inc
--- troll.admin.inc	6 May 2010 02:37:01 -0000	1.1.2.15
+++ troll.admin.inc	29 Oct 2010 16:22:44 -0000
@@ -53,6 +53,17 @@ function troll_admin_settings() {
     );
   }
 
+  $form['exec_command'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Exec command'),
+  );
+  $form['exec_command']['troll_exec_enabled'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable exec'),
+    '#description' => t('Enable exec for DNS lookup on IP addresses.'),
+    '#default_value' => variable_get('troll_exec_enabled', 1),
+  );
+
   return system_settings_form($form);
 }
 
@@ -1043,7 +1054,14 @@ function troll_search_user_detail($uid) 
     else {
       $status = l(t('not banned'), 'admin/user/troll/ip_ban/user/'. $uid, array('title' => t('Ban this IP')));
     }
-    $rows[] = array($ip->ip_address, $status, format_date($ip->accessed, 'large'), format_date($ip->created, 'large'), exec('host '. $ip->ip_address));
+
+    if (variable_get('troll_exec_enabled', 1)) {
+      $rows[] = array($ip->ip_address, $status, format_date($ip->accessed, 'large'), format_date($ip->created, 'large'), exec('host '. $ip->ip_address));
+    }
+    else {
+      $rows[] = array($ip->ip_address, $status, format_date($ip->accessed, 'large'), format_date($ip->created, 'large'), '-');
+    }
+
   }
 
   if ($rows) {
