We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1a1c5 commit a49330dCopy full SHA for a49330d
1 file changed
netjsonconfig/backends/raspbian/templates/raspbian.jinja2
@@ -81,9 +81,15 @@ iface {{ interface.get('ifname') }} inet6 {{ address.get('proto') }}
81
{% endfor %}
82
{% endif %}
83
{% endfor%}
84
+{% set count = [1] %}
85
{% for i, j in data.items() %}
-{% if i|string() == 'dns_servers' %}
86
+{% if i|string() in ['dns_servers', 'dns_search'] %}
87
+{% if count == [1] %}
88
config: /etc/resolv.conf
89
+{% if count.append(count.pop() + 1) %}{% endif %}
90
+{% endif %}
91
92
+{% if i|string() == 'dns_servers' %}
93
{% for ip in j %}
94
nameserver {{ ip }}
95
0 commit comments