summaryrefslogtreecommitdiff
path: root/src/conf_mode/host_name.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-02-17 13:05:13 +0100
committerChristian Poessinger <christian@poessinger.com>2019-02-17 13:05:13 +0100
commit4544778df0d405be08521bb67e5a14a4944f4973 (patch)
tree71dc5ec13a430106268a5a6dd45f3d92d9929056 /src/conf_mode/host_name.py
parentfbb394ec243baba2cb94470d271bd3460ed9b7ae (diff)
downloadvyos-1x-4544778df0d405be08521bb67e5a14a4944f4973.tar.gz
vyos-1x-4544778df0d405be08521bb67e5a14a4944f4973.zip
hostname: bugfix for overwriting search domains
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-xsrc/conf_mode/host_name.py4
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')