feat: base setup for dns
This commit is contained in:
parent
bbeb58db57
commit
2d0079daa4
2 changed files with 65 additions and 0 deletions
23
applications/dns.nix
Normal file
23
applications/dns.nix
Normal file
|
@ -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 = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
42
applications/dns/skynet
Normal file
42
applications/dns/skynet
Normal file
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue