valkyrie(coredns): Put zone files in /etc/coredns so reloading should work
This commit is contained in:
parent
f7f49cca18
commit
1ee0e5255e
1 changed files with 13 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue