diff options
Diffstat (limited to 'hosts/surtr/dns')
-rw-r--r-- | hosts/surtr/dns/default.nix | 23 | ||||
-rw-r--r-- | hosts/surtr/dns/zones/li.yggdrasil.soa | 56 | ||||
-rw-r--r-- | hosts/surtr/dns/zones/org.praseodym.soa | 43 |
3 files changed, 122 insertions, 0 deletions
diff --git a/hosts/surtr/dns/default.nix b/hosts/surtr/dns/default.nix new file mode 100644 index 00000000..59214339 --- /dev/null +++ b/hosts/surtr/dns/default.nix | |||
@@ -0,0 +1,23 @@ | |||
1 | {...}: | ||
2 | { | ||
3 | config = { | ||
4 | fileSystems."/var/lib/knot" = | ||
5 | { device = "surtr/safe/var-lib-knot"; | ||
6 | fsType = "zfs"; | ||
7 | }; | ||
8 | |||
9 | services.knot = { | ||
10 | enable = true; | ||
11 | extraConfig = '' | ||
12 | server: | ||
13 | listen: 0.0.0.0@53 | ||
14 | listen: ::@53 | ||
15 | |||
16 | zone: | ||
17 | - domain: yggdrasil.li | ||
18 | file: ${./zones/li.yggdrasil.soa} | ||
19 | semantic-checks: on | ||
20 | ''; | ||
21 | }; | ||
22 | }; | ||
23 | } | ||
diff --git a/hosts/surtr/dns/zones/li.yggdrasil.soa b/hosts/surtr/dns/zones/li.yggdrasil.soa new file mode 100644 index 00000000..81e7ccfd --- /dev/null +++ b/hosts/surtr/dns/zones/li.yggdrasil.soa | |||
@@ -0,0 +1,56 @@ | |||
1 | $ORIGIN yggdrasil.li. | ||
2 | $TTL 3600 | ||
3 | @ IN SOA ns.yggdrasil.li. root.yggdrasil.li. ( | ||
4 | 2021052900 ; serial | ||
5 | 10800 ; refresh | ||
6 | 3600 ; retry | ||
7 | 604800 ; expire | ||
8 | 3600 ; min TTL | ||
9 | ) | ||
10 | IN NS ns.yggdrasil.li. | ||
11 | IN NS ns.inwx.de. | ||
12 | IN NS ns2.inwx.de. | ||
13 | IN NS ns3.inwx.eu. | ||
14 | |||
15 | ns IN A 202.61.241.61 | ||
16 | ns IN AAAA 2a03:4000:52:ada:: | ||
17 | |||
18 | @ IN A 188.68.51.254 | ||
19 | @ IN AAAA 2a03:4000:6:d004:: | ||
20 | @ IN MX 0 ymir.yggdrasil.li. | ||
21 | @ IN TXT "v=spf1 a:mailout.yggdrasil.li -all" | ||
22 | |||
23 | * IN A 188.68.51.254 | ||
24 | * IN AAAA 2a03:4000:6:d004:: | ||
25 | * IN MX 0 ymir.yggdrasil.li. | ||
26 | * IN TXT "v=spf1 redirect=yggdrasil.li" | ||
27 | |||
28 | ymir IN A 188.68.51.254 | ||
29 | ymir IN AAAA 2a03:4000:6:d004:: | ||
30 | ymir IN MX 0 ymir.yggdrasil.li. | ||
31 | ymir IN TXT "v=spf1 redirect=yggdrasil.li" | ||
32 | |||
33 | surtr IN A 202.61.241.61 | ||
34 | surtr IN AAAA 2a03:4000:52:ada:: | ||
35 | surtr IN MX 0 ymir.yggdrasil.li | ||
36 | surtr IN TXT "v=spf1 redirect=ullr.yggdrasil.li" | ||
37 | |||
38 | mailout IN A 188.68.51.254 | ||
39 | mailout IN AAAA 2a03:4000:6:d004:: | ||
40 | mailout IN MX 0 ymir.yggdrasil.li | ||
41 | mailout IN TXT "v=spf1 redirect=yggdrasil.li" | ||
42 | |||
43 | ymir._domainkey IN TXT ( | ||
44 | "v=DKIM1;k=rsa;p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq3cCKlk+VPhyAanLZTM0BCzUT/+fmxHioZcFk0uJk1akBYj7BRofR7eVNcLKpm3rwYMQgE+9vJH9p8SV6tws9EcWc8SMCqqGZlREYM7PmLDiTSK/vjCzkygfgFCb0EBNsY2A/fpP4rTeoxrbcBSvMkq97iY5rwyw4wXZVZXLiDaCj23s8POoxTk1ClqUJZJQ5x2" | ||
45 | "qzrC0RfN5kLZ9A7Gq2jB09vNxpXHYqABA0bJv88JiZM7hfkp9IafJZ+yCVMaBcJs4DAxnTjNAuFD9gm+qSFVY8+yeXqL6Qjo5PbruhyZRBW8RgRYT8t5n07XRglMGKKGMwOGLanrltcyXqB+GsDZBD36RAAwjFadnxdpDyRv4SgRP7ff2tKRrORYpmpN+mKdqw5j3J/nP6bXV1oAkyh9XQkPEIDi81WT87EZziTElDzVp6A2qFOxqucAovoRk24" | ||
46 | "7vlsns1FApFRsp9mja0UZNObyKD1M6tP9Ep7lS76tFGMk+WDvXRJH5LEsyCpu7sSyl1r/O0M4K+KldRCqLlZd7rf8F5P8T0dn1azk05g7F4p0N/y9GNdzXbPZ9u0eZdI7SEdh8ZoOZp7NVZiBFfbWLSS5ZtyA2kbBa4i7GJ/cuAbEKOmqAkeQPiu96TGIcyjkXjS6mTPI+9UmKZYZC+OM8XdJ02y5KRoonCc19ZS8CAwEAAQ==" | ||
47 | ) | ||
48 | |||
49 | _xmpp-client._tcp IN SRV 5 0 5222 ymir.yggdrasil.li. | ||
50 | _xmpp-server._tcp IN SRV 5 0 5269 ymir.yggdrasil.li. | ||
51 | |||
52 | _infinoted._tcp IN SRV 5 0 6523 ymir.yggdrasil.li. | ||
53 | |||
54 | _submission._tcp IN SRV 5 0 25 ymir.yggdrasil.li. | ||
55 | _imap._tcp IN SRV 5 0 143 ymir.yggdrasil.li. | ||
56 | _imaps._tcp IN SRV 5 0 993 ymir.yggdrasil.li. | ||
diff --git a/hosts/surtr/dns/zones/org.praseodym.soa b/hosts/surtr/dns/zones/org.praseodym.soa new file mode 100644 index 00000000..3b946641 --- /dev/null +++ b/hosts/surtr/dns/zones/org.praseodym.soa | |||
@@ -0,0 +1,43 @@ | |||
1 | $ORIGIN praseodym.org. | ||
2 | $TTL 3600 | ||
3 | @ IN SOA ns.yggdrasil.li. root.yggdrasil.li. ( | ||
4 | 2021051520 ; serial | ||
5 | 10800 ; refresh | ||
6 | 3600 ; retry | ||
7 | 604800 ; expire | ||
8 | 3600 ; min TTL | ||
9 | ) | ||
10 | IN NS ns.yggdrasil.li. | ||
11 | IN NS ns.inwx.de. | ||
12 | IN NS ns2.inwx.de. | ||
13 | IN NS ns3.inwx.eu. | ||
14 | |||
15 | @ IN A 188.68.51.254 | ||
16 | @ IN AAAA 2a03:4000:6:d004:: | ||
17 | @ IN MX 0 ymir.yggdrasil.li. | ||
18 | @ IN TXT "v=spf1 redirect=yggdrasil.li" | ||
19 | |||
20 | * IN A 188.68.51.254 | ||
21 | * IN AAAA 2a03:4000:6:d004:: | ||
22 | * IN MX 0 ymir.yggdrasil.li. | ||
23 | * IN TXT "v=spf1 redirect=yggdrasil.li" | ||
24 | |||
25 | surtr IN A 202.61.241.61 | ||
26 | surtr IN AAAA 2a03:4000:52:ada:: | ||
27 | surtr IN MX 0 ymir.yggdrasil.li | ||
28 | surtr IN TXT "v=spf1 redirect=ullr.yggdrasil.li" | ||
29 | |||
30 | ymir._domainkey IN TXT ( | ||
31 | "v=DKIM1;k=rsa;p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq3cCKlk+VPhyAanLZTM0BCzUT/+fmxHioZcFk0uJk1akBYj7BRofR7eVNcLKpm3rwYMQgE+9vJH9p8SV6tws9EcWc8SMCqqGZlREYM7PmLDiTSK/vjCzkygfgFCb0EBNsY2A/fpP4rTeoxrbcBSvMkq97iY5rwyw4wXZVZXLiDaCj23s8POoxTk1ClqUJZJQ5x2" | ||
32 | "qzrC0RfN5kLZ9A7Gq2jB09vNxpXHYqABA0bJv88JiZM7hfkp9IafJZ+yCVMaBcJs4DAxnTjNAuFD9gm+qSFVY8+yeXqL6Qjo5PbruhyZRBW8RgRYT8t5n07XRglMGKKGMwOGLanrltcyXqB+GsDZBD36RAAwjFadnxdpDyRv4SgRP7ff2tKRrORYpmpN+mKdqw5j3J/nP6bXV1oAkyh9XQkPEIDi81WT87EZziTElDzVp6A2qFOxqucAovoRk24" | ||
33 | "7vlsns1FApFRsp9mja0UZNObyKD1M6tP9Ep7lS76tFGMk+WDvXRJH5LEsyCpu7sSyl1r/O0M4K+KldRCqLlZd7rf8F5P8T0dn1azk05g7F4p0N/y9GNdzXbPZ9u0eZdI7SEdh8ZoOZp7NVZiBFfbWLSS5ZtyA2kbBa4i7GJ/cuAbEKOmqAkeQPiu96TGIcyjkXjS6mTPI+9UmKZYZC+OM8XdJ02y5KRoonCc19ZS8CAwEAAQ==" | ||
34 | ) | ||
35 | |||
36 | _xmpp-client._tcp IN SRV 5 0 5222 ymir.yggdrasil.li. | ||
37 | _xmpp-server._tcp IN SRV 5 0 5269 ymir.yggdrasil.li. | ||
38 | |||
39 | _infinoted._tcp IN SRV 5 0 6523 ymir.yggdrasil.li. | ||
40 | |||
41 | _submission._tcp IN SRV 5 0 25 ymir.yggdrasil.li. | ||
42 | _imap._tcp IN SRV 5 0 143 ymir.yggdrasil.li. | ||
43 | _imaps._tcp IN SRV 5 0 993 ymir.yggdrasil.li. | ||