mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
a53992b78d
commit
53bbbf04fe
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user