Explorar el Código

correct dns-nameserver configuration

netifs
padre
commit
7cf58157f0
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      templates/network-interface-debian.j2

+ 6
- 2
templates/network-interface-debian.j2 Ver fichero

@@ -69,8 +69,12 @@ iface {{ dev }} inet static
# dns resolvers
iface {{ dev }} inet manual
{% 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 %}
{% 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 %}

Cargando…
Cancelar
Guardar