diff options
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-x | src/conf_mode/host_name.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index 8ad6000be..c7b87f1c3 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -94,7 +94,9 @@ def get_config(): if hosts['domain_name']: hosts['domain_search'].append(hosts['domain_name']) - hosts['domain_search'] = conf.return_values("system domain-search domain") + for search in conf.return_values("system domain-search domain"): + hosts['domain_search'].append(search) + hosts['nameserver'] = conf.return_values("system name-server") hosts['no_dhcp_ns'] = conf.exists('system disable-dhcp-nameservers') |