Browse Source

correct dns-nameserver configuration

netifs
parent
commit
7cf58157f0
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      templates/network-interface-debian.j2

+ 6
- 2
templates/network-interface-debian.j2 View File

@@ -69,8 +69,12 @@ iface {{ dev }} inet static
# dns resolvers # dns resolvers
iface {{ dev }} inet manual iface {{ dev }} inet manual
{% if netifs[netif].dns_resolvers is defined %} {% if netifs[netif].dns_resolvers is defined %}
dns-nameservers {{ netifs[netif].dns_resolvers | join(" ") }}
{% for nameserver in netifs[netif].dns_resolvers %}
dns-nameserver {{ nameserver }}
{% endfor %}
{% endif %} {% endif %}
{% if netifs[netif].dns_search is defined%} {% if netifs[netif].dns_search is defined%}
dns-search {{ netifs[netif].dns_search | join(" ") }}
{% for search in netifs[netif].dns_search %}
dns-search {{ search }}
{% endfor %}
{% endif %} {% endif %}

Loading…
Cancel
Save