diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-02-17 13:05:13 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-02-17 13:05:13 +0100 |
commit | 4544778df0d405be08521bb67e5a14a4944f4973 (patch) | |
tree | 71dc5ec13a430106268a5a6dd45f3d92d9929056 | |
parent | fbb394ec243baba2cb94470d271bd3460ed9b7ae (diff) | |
download | vyos-1x-4544778df0d405be08521bb67e5a14a4944f4973.tar.gz vyos-1x-4544778df0d405be08521bb67e5a14a4944f4973.zip |
hostname: bugfix for overwriting search domains
-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') |