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 + + +