From 2d0079daa4af20f217e667c8ea3ec1bec2b45819 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Tue, 17 Jan 2023 22:40:04 +0000 Subject: [PATCH] feat: base setup for dns --- applications/dns.nix | 23 ++++++++++++++++++++++ applications/dns/skynet | 42 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 applications/dns.nix create mode 100644 applications/dns/skynet diff --git a/applications/dns.nix b/applications/dns.nix new file mode 100644 index 0000000..6ef507f --- /dev/null +++ b/applications/dns.nix @@ -0,0 +1,23 @@ +{ lib, pkgs, config, ... }: { + + services.bind = { + enable = true; + + forwarders = [ + # these were in old config file + "193.1.100.130" + "193.1.100.131" + ]; + + skynet.ie = { + extraConfig = ""; + file = ./dns/skynet; + master = true; + masters = []; + slaves = [ ]; + }; + }; + + + +} \ No newline at end of file diff --git a/applications/dns/skynet b/applications/dns/skynet new file mode 100644 index 0000000..6d878ca --- /dev/null +++ b/applications/dns/skynet @@ -0,0 +1,42 @@ +$TTL 60 ; 1 minute +@ IN SOA ns1.skynet.ie. dnsadm.skynet.ie. ( + 2023011701 ; Serial (YYYYMMDDCC) + 600 ; Refresh (10 minutes) + 300 ; Retry (5 minutes) + 2419200 ; Expire (4 weeks) + 3600 ; Minimum (1 hour) + ) + NS ns1.skynet.ie. + NS ns2.skynet.ie. + ;A 193.1.99.76 + MX 5 mail.skynet.ie. + + ; can have multiple mailserves + ;MX 20 mail2.skynet.ie. + + +; ------------------------------------------ +; Server Names +; ------------------------------------------ + +; External addresses +; ------------------------------------------ +agentjones A 193.1.99.72 + + +; this is fixed for now +wintermute A 193.1.101.148 + + +; internal addresses +; ------------------------------------------ +; May come back to this idea in teh future +; agentjones.int A 172.20.20.1 + + +; cname's +; ------------------------------------------ +; ns1 CNAME ns1 + + +