From 4544778df0d405be08521bb67e5a14a4944f4973 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 17 Feb 2019 13:05:13 +0100 Subject: hostname: bugfix for overwriting search domains --- src/conf_mode/host_name.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3