summaryrefslogtreecommitdiff
path: root/0-dump-root-zone.sh
diff options
context:
space:
mode:
Diffstat (limited to '0-dump-root-zone.sh')
-rwxr-xr-x0-dump-root-zone.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/0-dump-root-zone.sh b/0-dump-root-zone.sh
new file mode 100755
index 0000000..b3e8c17
--- /dev/null
+++ b/0-dump-root-zone.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -e
+
+0>root-zone.dns
+cat > root-zone.dns <<-EOF
+\$TTL 2d ; Default TTL for zone
+\$ORIGIN .
+
+@ IN SOA dumb. pufferfish.mpgn.dev. (
+ 0 ; serial number
+ 12h ; refresh
+ 15m ; update retry
+ 3w ; expiry
+ 2h ; minimum
+ )
+EOF
+
+dig -t axfr . @iad.xfr.dns.icann.org | grep -E 'DS|NS|A|AAAA' |sed '/RRSIG/d'|sed '/^\./d' >> root-zone.dns