Do not create blank domain lines if domain is gone from config.xml. It breaks tools such as dig when troubleshooting, etc.

This commit is contained in:
Scott Ullrich 2011-06-19 14:20:15 -04:00
parent a53992b78d
commit 53bbbf04fe

View File

@ -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;