valkyrie(coredns): Put zone files in /etc/coredns so reloading should work

This commit is contained in:
Erwin Boskma 2024-07-15 23:53:39 +02:00
parent f7f49cca18
commit 1ee0e5255e
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -9,7 +9,7 @@
.:5454 { .:5454 {
bind lo bind lo
reload 5s reload 5s
file ${./tailscale.zone} datarift.nl { file /etc/coredns/tailscale.zone datarift.nl {
reload 10s reload 10s
} }
forward . 127.0.0.1:5335 forward . 127.0.0.1:5335
@ -21,7 +21,7 @@
.:5455 { .:5455 {
bind lo bind lo
reload 5s reload 5s
file ${./datarift.zone} datarift.nl { file /etc/coredns/datarift.zone datarift.nl {
reload 10s reload 10s
} }
forward . 127.0.0.1:5335 forward . 127.0.0.1:5335
@ -32,6 +32,17 @@
''; '';
}; };
environment.etc = {
"coredns/datarift.zone" = {
source = ./datarift.zone;
mode = "0644";
};
"coredns/tailscale.zone" = {
source = ./tailscale.zone;
mode = "0644";
};
};
systemd.services.coredns = { systemd.services.coredns = {
environment = { environment = {
HOME = "%S/coredns"; HOME = "%S/coredns";