summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-06-19 14:20:15 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-06-19 15:01:50 -0400
commit53bbbf04fe693bf7f29f87aacbc656a7c4e56e5e (patch)
tree6b2d330e354112da51935ed81c0124823b673e38 /etc
parenta53992b78d8e454cb89cadaa53636592b8200212 (diff)
downloadpfsense-53bbbf04fe693bf7f29f87aacbc656a7c4e56e5e.zip
pfsense-53bbbf04fe693bf7f29f87aacbc656a7c4e56e5e.tar.gz
Do not create blank domain lines if domain is gone from config.xml. It breaks tools such as dig when troubleshooting, etc.
Diffstat (limited to 'etc')
-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 ca0ad4d..0d9a9fd 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