@@ -22,4 +22,7 @@
notify: Restart supervisor
- name: Install ntp.conf
- template: src=ntp.conf.j2 dest=/etc/ntp.conf
+ template: src=ntp.conf.j2 dest=/etc/ntp.conf
+
+- name: Install unbound domain config
+ template: src=unbound.domain.j2 dest=/etc/unbound/conf.d/supernode.conf
@@ -0,0 +1,5 @@
+local-zone: "services.{{supernode_top_domain}}." static
+{% for backbone in supernodes %}
+local-data: "{{loop.index}}.ntp.services.{{supernode_top_domain}}. A {{backbone.mesh_ip_v4|ipaddr('address')}}"
+local-data: "{{loop.index}}.ntp.services.{{supernode_top_domain}}. AAAA {{backbone.mesh_ip_v6|ipaddr('address')}}""
+{% endfor %}