feat: first nameserver set up
This commit is contained in:
parent
f3a3768f92
commit
8db9529449
4 changed files with 34 additions and 9 deletions
|
@ -39,8 +39,8 @@ in {
|
|||
|
||||
forwarders = [
|
||||
# these were in old config file
|
||||
"193.1.100.130"
|
||||
"193.1.100.131"
|
||||
#"193.1.100.130"
|
||||
#"193.1.100.131"
|
||||
];
|
||||
|
||||
zones = {
|
||||
|
@ -62,10 +62,11 @@ in {
|
|||
extraConfig = "";
|
||||
# really wish teh nixos config didnt use master/slave
|
||||
master = true;
|
||||
masters = [ ];
|
||||
slaves = [ ];
|
||||
|
||||
file = ''
|
||||
# need to write this to a file
|
||||
file = pkgs.writeText "dns_zone_skynet"
|
||||
# no leading whitespace for first line
|
||||
''
|
||||
$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. (
|
||||
|
@ -91,7 +92,7 @@ in {
|
|||
|
||||
; External addresses
|
||||
; ------------------------------------------
|
||||
${lib.strings.concatMapStrings (x: x + "\n ") cfg.records.external}
|
||||
${lib.strings.concatMapStrings (x: x + "\n") cfg.records.external}
|
||||
|
||||
|
||||
; this is fixed for now
|
||||
|
@ -106,7 +107,7 @@ in {
|
|||
|
||||
; cname's
|
||||
; ------------------------------------------
|
||||
${lib.strings.concatMapStrings (x: x + "\n ") cfg.records.cname}
|
||||
${lib.strings.concatMapStrings (x: x + "\n") cfg.records.cname}
|
||||
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue