From 762649772dcefee5c4fbc9f997a2483da309a850 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 10 Nov 2016 17:41:28 +0100 Subject: begin dns setup --- ymir.nix | 10 ++++++++++ ymir/zones/index.nix | 12 ++++++++++++ ymir/zones/li.141.soa | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 ymir/zones/index.nix create mode 100644 ymir/zones/li.141.soa diff --git a/ymir.nix b/ymir.nix index ce0aabc8..aa57e26c 100644 --- a/ymir.nix +++ b/ymir.nix @@ -640,4 +640,14 @@ in rec { users.groups."filebin" = { members = ["gkleen" "uucp"]; }; + + services.nsd = { + enable = true; + verbosity = 2; + zones = { + "inwx" = { + children = (import ./ymir/zones/index.nix { pkgs.lib }); + }; + }; + }; } 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 @@ +{ lib }: + +with lib; + +rec { + "141.li" = { data = readFile ./li.141.soa; }; + # "dirty-haskell.org" = { data = readFile ./org.dirty-haskell.soa; }; + # "lmu.li" = { data = readFile ./li.lmu.soa; }; + # "praseodym.org" = { data = readFile ./org.praseodym.soa; }; + # "xmpp.li" = { data = readFile ./li.xmpp.soa; }; + # "yggdrasil.li" = { data = readFile ./li.yggdrasil.soa; }; +} 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 @@ +$ORIGIN 141.li. +$TTL 3600 +@ IN SOA ns.141.li. root.141.li. ( + 2016111002 ; serial + 10800 ; refresh + 3600 ; retry + 604800 ; expire + 3600 ; min TTL +) + NS ns1.141.li. +ns1 IN A 188.68.51.254 + +@ IN A 188.68.51.254 +@ IN AAAA 2a03:4000:6:d004:: +@ IN MX 0 ymir.yggdrasil.li. +@ IN SPF "v=spf1 redirect=yggdrasil.li" + +* IN A 188.68.51.254 +* IN AAAA 2a03:4000:6:d004:: +* IN MX 0 ymir.yggdrasil.li. +* IN SPF "v=spf1 redirect=yggdrasil.li" + +ullr IN A 188.68.34.177 +ullr IN MX 0 ymir.yggdrasil.li +ullr IN SPF "v=spf1 redirect=ullr.yggdrasil.li" + +ymir IN A 188.68.51.254 +ymir IN AAAA 2a03:4000:6:d004:: +ymir IN MX 0 ymir.yggdrasil.li +ymir IN SPF "v=spf1 redirect=ymir.yggdrasil.li" + + +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==") + +_xmpp-client._tcp IN SRV 5 0 5222 ymir.yggdrasil.li. +_xmpp-server._tcp IN SRV 5 0 5269 ymir.yggdrasil.li. -- cgit v1.2.3