summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-06-21 08:12:12 -0400
committerjim-p <jimp@pfsense.org>2011-06-21 08:12:12 -0400
commitc7bb0eeda4498e9310a5e2b765947f876afddf72 (patch)
tree8395e4a5b60dff7a2a3a576ddeb39ce8eb09a2e6 /etc/inc/system.inc
parentffdcbeb67b3b8bea0e381e9d969fb4743eff7754 (diff)
parent7cca77de28652ca92a901be6da2e8ad86259ce16 (diff)
downloadpfsense-c7bb0eeda4498e9310a5e2b765947f876afddf72.zip
pfsense-c7bb0eeda4498e9310a5e2b765947f876afddf72.tar.gz
Merge remote branch 'upstream/master'
Conflicts: etc/version
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 7fd3bcf..2c644d8 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -86,7 +86,9 @@ function system_resolvconf_generate($dynupdate = false) {
$syscfg = $config['system'];
- $resolvconf = "domain {$syscfg['domain']}\n";
+ // Do not create blank domain lines, it breaks tools like dig.
+ if($syscfg['domain'])
+ $resolvconf = "domain {$syscfg['domain']}\n";
$havedns = false;
OpenPOWER on IntegriCloud