From 6fbe5ea564a492676dab0429114d2d5f97ab4f2b Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 21 Sep 2019 11:56:05 +0800 Subject: dns/nsd: Add IPv6 AXFR address for ns2.afraid.org --- group_vars/all/vars.yml | 7 +++++-- roles/dns/templates/nsd.conf.j2 | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index 1b11d22..228b93a 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -45,11 +45,14 @@ dns: nameservers: - name: afraid - xfr_ip: 69.65.50.192 + xfr_ip: + - 69.65.50.192 + - 2001:1850:1:5:800::6b ns: - ns2.afraid.org - name: 1984hosting - xfr_ip: 93.95.224.6 + xfr_ip: + - 93.95.224.6 ns: - ns0.1984.is - ns1.1984.is diff --git a/roles/dns/templates/nsd.conf.j2 b/roles/dns/templates/nsd.conf.j2 index 87ac3fe..e6d98d8 100644 --- a/roles/dns/templates/nsd.conf.j2 +++ b/roles/dns/templates/nsd.conf.j2 @@ -110,8 +110,10 @@ pattern: # Notify these slaves when the master zone changes, and allow them # to transfer zones. {% for server in nameservers %} - notify: {{ server.xfr_ip }} NOKEY # {{ server.name }} - provide-xfr: {{ server.xfr_ip }} NOKEY # {{ server.name }} +{% for ip in server.xfr_ip %} + notify: {{ ip }} NOKEY # {{ server.name }} + provide-xfr: {{ ip }} NOKEY # {{ server.name }} +{% endfor %} {% endfor %} -- cgit v1.2.2