aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/zones/233233.xyz.zone.j2
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-22 00:25:36 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:28:44 +0800
commit71dfbbe0291218bcb3ffaa9997d8aaf6d98a3259 (patch)
tree4a72066a9bb5985524d2c0d3b974a7ace855d55f /roles/dns/templates/zones/233233.xyz.zone.j2
parent6e2c2eb10093938e02a0d44726f71f82c7ffc5b8 (diff)
downloadansible-dfly-vps-71dfbbe0291218bcb3ffaa9997d8aaf6d98a3259.tar.bz2
role/dns: configure NSD as the stealth master with 2 domains
* Add "network" and "nsd" variables * Install and configure NSD as the authoritative stealth master server * Allow notify and transfer to slave masters: - freedns.afraid.org - 1984hosting.com * Add preliminary zone files for domains: - 233233.xyz - 1314233.xyz
Diffstat (limited to 'roles/dns/templates/zones/233233.xyz.zone.j2')
-rw-r--r--roles/dns/templates/zones/233233.xyz.zone.j238
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/dns/templates/zones/233233.xyz.zone.j2 b/roles/dns/templates/zones/233233.xyz.zone.j2
new file mode 100644
index 0000000..9a71750
--- /dev/null
+++ b/roles/dns/templates/zones/233233.xyz.zone.j2
@@ -0,0 +1,38 @@
+$ORIGIN 233233.xyz.
+$TTL 1h
+
+; WARNING:
+; A CNAME record is NOT allowed to coexist with *any other* data!
+; Therefore one can't have a CNAME Record at the zone root, because
+; the zone root must have two mandatory records: SOA and NS.
+;
+; According to the specification: if a CNAME RR is present at a node,
+; no other data should be present; this ensures that the data for a
+; canonical name and its aliases cannot be different. This rule also
+; insures that a cached CNAME can be used without checking with an
+; authoritative server for other RR types.
+
+@ IN SOA ns.233233.xyz. admin.233233.xyz. (
+ 2018022123 ; serial number
+ 1d ; refresh
+ 2h ; retry
+ 4w ; expire
+ 1h ; minimum TTL
+ )
+
+@ IN NS ns2.afraid.org.
+
+;@ IN MX 10 mail.233233.xyz.
+
+@ IN A {{ network.ipv4.address }}
+@ IN AAAA {{ network.ipv6.address }}
+;mail IN A {{ network.ipv4.address }}
+;mail IN AAAA {{ network.ipv6.address }}
+
+www IN CNAME @
+g IN CNAME @
+zw IN CNAME @
+
+;@ IN TXT "v=spf1 mx -all"
+
+; vim: set ft=bindzone :