summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/config_name_server.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/accel-ppp/config_name_server.j2')
-rw-r--r--data/templates/accel-ppp/config_name_server.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/config_name_server.j2 b/data/templates/accel-ppp/config_name_server.j2
new file mode 100644
index 000000000..2bf064f92
--- /dev/null
+++ b/data/templates/accel-ppp/config_name_server.j2
@@ -0,0 +1,13 @@
+{% if name_server_ipv4 is defined and name_server_ipv4 is not none %}
+[dns]
+{% for ns in name_server_ipv4 %}
+dns{{ loop.index }}={{ ns }}
+{% endfor %}
+{% endif %}
+
+{% if name_server_ipv6 is defined and name_server_ipv6 is not none %}
+[ipv6-dns]
+{% for ns in name_server_ipv6 %}
+{{ ns }}
+{% endfor %}
+{% endif %}