summaryrefslogtreecommitdiff
path: root/0-dump-root-zone.sh
blob: b3e8c17661d89d11a6e1f178741f059180ed3f2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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