feat: dns should work well with this
This commit is contained in:
parent
696e8a404f
commit
15c5005b37
1 changed files with 51 additions and 6 deletions
|
@ -58,12 +58,57 @@ in {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
skynet.ie = {
|
skynet.ie = {
|
||||||
extraConfig = "";
|
extraConfig = "";
|
||||||
file = ./dns/skynet;
|
# really wish teh nixos config didnt use master/slave
|
||||||
master = true;
|
master = true;
|
||||||
masters = [];
|
masters = [ ];
|
||||||
slaves = [ ];
|
slaves = [ ];
|
||||||
};
|
|
||||||
|
file = ''
|
||||||
|
$TTL 60 ; 1 minute
|
||||||
|
; hostmaster@skynet.ie is an email address that recieves stuff related to dns
|
||||||
|
@ IN SOA ns1.skynet.ie. hostmaster.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.
|
||||||
|
; @ stands for teh root domain so teh A record below is where skynet.ie points to
|
||||||
|
A 193.1.99.76
|
||||||
|
MX 5 mail.skynet.ie.
|
||||||
|
|
||||||
|
; can have multiple mailserves
|
||||||
|
;MX 20 mail2.skynet.ie.
|
||||||
|
|
||||||
|
|
||||||
|
; ------------------------------------------
|
||||||
|
; Server Names
|
||||||
|
; ------------------------------------------
|
||||||
|
|
||||||
|
; External addresses
|
||||||
|
; ------------------------------------------
|
||||||
|
${lib.strings.concatMapStrings (x: x + "\n") cfg.records.external}
|
||||||
|
|
||||||
|
|
||||||
|
; 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
|
||||||
|
; ------------------------------------------
|
||||||
|
${lib.strings.concatMapStrings (x: x + "\n") cfg.records.cname}
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue