diff --git a/src/hostinfo/ifconfig.py b/src/hostinfo/ifconfig.py index 13a58e99b4f7c4474093a1cad1aaa2514ef891f4..bdc91ff74533bcf72dbaece7aa1f2cfc61a1e957 100755 --- a/src/hostinfo/ifconfig.py +++ b/src/hostinfo/ifconfig.py @@ -123,6 +123,9 @@ def generate_ifcfgv6(tree, interface, search, nameservers): if a in n: gateway = s.gateway[0] address.append('%s/%d' % (a, n.prefixlen)) + if s.name_servers[0]: + nameservers.extend(re.split('[, ]+', s.name_servers[0])) + pass if s.domain[0]: search.update(s.domain[0].split()) pass