diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-11-10 17:41:28 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-11-10 17:41:28 +0100 |
commit | 762649772dcefee5c4fbc9f997a2483da309a850 (patch) | |
tree | 3c0c9adc09d1aad67baab6c15d419a23438115dc | |
parent | 52228887258d5d22dd9c81d445d688ff7563b0e0 (diff) | |
download | nixos-762649772dcefee5c4fbc9f997a2483da309a850.tar nixos-762649772dcefee5c4fbc9f997a2483da309a850.tar.gz nixos-762649772dcefee5c4fbc9f997a2483da309a850.tar.bz2 nixos-762649772dcefee5c4fbc9f997a2483da309a850.tar.xz nixos-762649772dcefee5c4fbc9f997a2483da309a850.zip |
begin dns setup
-rw-r--r-- | ymir.nix | 10 | ||||
-rw-r--r-- | ymir/zones/index.nix | 12 | ||||
-rw-r--r-- | ymir/zones/li.141.soa | 36 |
3 files changed, 58 insertions, 0 deletions
@@ -640,4 +640,14 @@ in rec { | |||
640 | users.groups."filebin" = { | 640 | users.groups."filebin" = { |
641 | members = ["gkleen" "uucp"]; | 641 | members = ["gkleen" "uucp"]; |
642 | }; | 642 | }; |
643 | |||
644 | services.nsd = { | ||
645 | enable = true; | ||
646 | verbosity = 2; | ||
647 | zones = { | ||
648 | "inwx" = { | ||
649 | children = (import ./ymir/zones/index.nix { pkgs.lib }); | ||
650 | }; | ||
651 | }; | ||
652 | }; | ||
643 | } | 653 | } |
diff --git a/ymir/zones/index.nix b/ymir/zones/index.nix new file mode 100644 index 00000000..a8d89924 --- /dev/null +++ b/ymir/zones/index.nix | |||
@@ -0,0 +1,12 @@ | |||
1 | { lib }: | ||
2 | |||
3 | with lib; | ||
4 | |||
5 | rec { | ||
6 | "141.li" = { data = readFile ./li.141.soa; }; | ||
7 | # "dirty-haskell.org" = { data = readFile ./org.dirty-haskell.soa; }; | ||
8 | # "lmu.li" = { data = readFile ./li.lmu.soa; }; | ||
9 | # "praseodym.org" = { data = readFile ./org.praseodym.soa; }; | ||
10 | # "xmpp.li" = { data = readFile ./li.xmpp.soa; }; | ||
11 | # "yggdrasil.li" = { data = readFile ./li.yggdrasil.soa; }; | ||
12 | } | ||
diff --git a/ymir/zones/li.141.soa b/ymir/zones/li.141.soa new file mode 100644 index 00000000..99f7f106 --- /dev/null +++ b/ymir/zones/li.141.soa | |||
@@ -0,0 +1,36 @@ | |||
1 | $ORIGIN 141.li. | ||
2 | $TTL 3600 | ||
3 | @ IN SOA ns.141.li. root.141.li. ( | ||
4 | 2016111002 ; serial | ||
5 | 10800 ; refresh | ||
6 | 3600 ; retry | ||
7 | 604800 ; expire | ||
8 | 3600 ; min TTL | ||
9 | ) | ||
10 | NS ns1.141.li. | ||
11 | ns1 IN A 188.68.51.254 | ||
12 | |||
13 | @ IN A 188.68.51.254 | ||
14 | @ IN AAAA 2a03:4000:6:d004:: | ||
15 | @ IN MX 0 ymir.yggdrasil.li. | ||
16 | @ IN SPF "v=spf1 redirect=yggdrasil.li" | ||
17 | |||
18 | * IN A 188.68.51.254 | ||
19 | * IN AAAA 2a03:4000:6:d004:: | ||
20 | * IN MX 0 ymir.yggdrasil.li. | ||
21 | * IN SPF "v=spf1 redirect=yggdrasil.li" | ||
22 | |||
23 | ullr IN A 188.68.34.177 | ||
24 | ullr IN MX 0 ymir.yggdrasil.li | ||
25 | ullr IN SPF "v=spf1 redirect=ullr.yggdrasil.li" | ||
26 | |||
27 | ymir IN A 188.68.51.254 | ||
28 | ymir IN AAAA 2a03:4000:6:d004:: | ||
29 | ymir IN MX 0 ymir.yggdrasil.li | ||
30 | ymir IN SPF "v=spf1 redirect=ymir.yggdrasil.li" | ||
31 | |||
32 | |||
33 | ymir._domainkey IN TXT ("v=DKIM1;k=rsa;p=MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq3cCKlk+VPhyAanLZTM0BCzUT/+fmxHioZcFk0uJk1akBYj7BRofR7eVNcLKpm3rwYMQgE+9vJH9p8SV6tws9EcWc8SMCqqGZlREYM7PmLDiTSK/vjCzkygfgFCb0EBNsY2A/fpP4rTeoxrbcBSvMkq97iY5rwyw4wXZVZXLiDaCj23s8POoxTk1ClqUJZJQ5x2qzrC0RfN5kLZ9A7Gq2jB09vNxpXHYqABA0bJv88JiZM7hfkp9IafJZ+yCVMaBcJs4DAxnTjNAuFD9gm+qSFVY8+yeXqL6Qjo5PbruhyZRBW8RgRYT8t5n07XRglMGKKGMwOGLanrltcyXqB+GsDZBD36RAAwjFadnxdpDyRv4SgRP7ff2tKRrORYpmpN+mKdqw5j3J/nP6bXV1oAkyh9XQkPEIDi81WT87EZziTElDzVp6A2qFOxqucAovoRk247vlsns1FApFRsp9mja0UZNObyKD1M6tP9Ep7lS76tFGMk+WDvXRJH5LEsyCpu7sSyl1r/O0M4K+KldRCqLlZd7rf8F5P8T0dn1azk05g7F4p0N/y9GNdzXbPZ9u0eZdI7SEdh8ZoOZp7NVZiBFfbWLSS5ZtyA2kbBa4i7GJ/cuAbEKOmqAkeQPiu96TGIcyjkXjS6mTPI+9UmKZYZC+OM8XdJ02y5KRoonCc19ZS8CAwEAAQ==") | ||
34 | |||
35 | _xmpp-client._tcp IN SRV 5 0 5222 ymir.yggdrasil.li. | ||
36 | _xmpp-server._tcp IN SRV 5 0 5269 ymir.yggdrasil.li. | ||