瀏覽代碼

correct dns-nameserver configuration

netifs
父節點
當前提交
7cf58157f0
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      templates/network-interface-debian.j2

+ 6
- 2
templates/network-interface-debian.j2 查看文件

@@ -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 %}

Loading…
取消
儲存