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
committerDaniil Baturin <daniil@baturin.org>2019-05-20 06:11:31 +0200
commit78bfc0ec80067a30a8fe0aa94f16774e544ed67a (patch)
treeef7e3610268b093df08455d3aed5a9d603a1a4c8 /src/conf_mode/host_name.py
parent4ad1c3672fab3e08712fe40e695f861b2ccfd28c (diff)
downloadvyos-1x-78bfc0ec80067a30a8fe0aa94f16774e544ed67a.tar.gz
vyos-1x-78bfc0ec80067a30a8fe0aa94f16774e544ed67a.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')