fix: test the new format

This commit is contained in:
silver 2024-07-20 00:51:24 +01:00
parent abdc5b6d50
commit 2a949f8e82
Signed by: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 9 additions and 9 deletions

View file

@ -9,7 +9,7 @@
cfg = config.services.skynet."${name}"; cfg = config.services.skynet."${name}";
# reads that date to a string (will need to be fixed in 2038) # reads that date to a string (will need to be fixed in 2038)
current_date = lib.readFile "${pkgs.runCommand "timestamp" {} "echo -n `date +%s` > $out"}"; current_date = builtins.currentTime;
# this gets a list of all domains we have records for # this gets a list of all domains we have records for
domains = lib.lists.naturalSort ( domains = lib.lists.naturalSort (
@ -79,7 +79,7 @@
; hostmaster@skynet.ie is an email address that recieves stuff related to dns ; hostmaster@skynet.ie is an email address that recieves stuff related to dns
@ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. ( @ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. (
; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated ; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated
${current_date} ${toString current_date}
600 ; Refresh (10 minutes) 600 ; Refresh (10 minutes)
300 ; Retry (5 minutes) 300 ; Retry (5 minutes)
604800 ; Expire (1 week) 604800 ; Expire (1 week)
@ -133,7 +133,7 @@
; hostmaster@skynet.ie is an email address that recieves stuff related to dns ; hostmaster@skynet.ie is an email address that recieves stuff related to dns
@ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. ( @ IN SOA ${nameserver}.skynet.ie. hostmaster.skynet.ie. (
; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated ; Serial (YYYYMMDDCC) this has to be updated for each time the record is updated
${current_date} ${toString current_date}
600 ; Refresh (10 minutes) 600 ; Refresh (10 minutes)
300 ; Retry (5 minutes) 300 ; Retry (5 minutes)
604800 ; Expire (1 week) 604800 ; Expire (1 week)
@ -215,7 +215,7 @@
extraConfig = '' extraConfig = ''
${if_primary_and_owned} ${if_primary_and_owned}
// for bumping the config // for bumping the config
// ${current_date} // ${toString current_date}
''; '';
# really wish teh nixos config didnt use master/slave # really wish teh nixos config didnt use master/slave
master = cfg.server.primary; master = cfg.server.primary;

View file

@ -37,7 +37,7 @@
{ {
record = "_minecraft._tcp.minecraft.compsoc.games.skynet.ie."; record = "_minecraft._tcp.minecraft.compsoc.games.skynet.ie.";
r_type = "SRV"; r_type = "SRV";
value = "0 10 25518 minecraft.compsoc.games.skynet.ie."; value = "0 10 25518 bumblebee.skynet.ie.";
} }
{ {
record = "minecraft-classic.compsoc.games"; record = "minecraft-classic.compsoc.games";
@ -47,7 +47,7 @@
{ {
record = "_minecraft._tcp.minecraft-classic.compsoc.games.skynet.ie."; record = "_minecraft._tcp.minecraft-classic.compsoc.games.skynet.ie.";
r_type = "SRV"; r_type = "SRV";
value = "0 10 25518 minecraft-classic.compsoc.games.skynet.ie."; value = "0 10 25518 bumblebee.skynet.ie.";
} }
{ {
record = "minecraft.gsoc.games"; record = "minecraft.gsoc.games";
@ -57,7 +57,7 @@
{ {
record = "_minecraft._tcp.minecraft.gsoc.games.skynet.ie."; record = "_minecraft._tcp.minecraft.gsoc.games.skynet.ie.";
r_type = "SRV"; r_type = "SRV";
value = "0 10 25521 minecraft.gsoc.games.skynet.ie."; value = "0 10 25521 bumblebee.skynet.ie.";
} }
{ {
record = "minecraft.phildeb.games"; record = "minecraft.phildeb.games";
@ -67,7 +67,7 @@
{ {
record = "_minecraft._tcp.minecraft.phildeb.games.skynet.ie."; record = "_minecraft._tcp.minecraft.phildeb.games.skynet.ie.";
r_type = "SRV"; r_type = "SRV";
value = "0 10 25522 minecraft.phildeb.games.skynet.ie."; value = "0 10 25522 bumblebee.skynet.ie.";
} }
{ {
record = "minecraft-aged.compsoc.games"; record = "minecraft-aged.compsoc.games";
@ -77,7 +77,7 @@
{ {
record = "_minecraft._tcp.minecraft-aged.compsoc.games.skynet.ie."; record = "_minecraft._tcp.minecraft-aged.compsoc.games.skynet.ie.";
r_type = "SRV"; r_type = "SRV";
value = "0 10 25519 minecraft.phildeb.games.skynet.ie."; value = "0 10 25519 bumblebee.skynet.ie.";
} }
] ]
# non skynet domains # non skynet domains