nsd: enable remote-control
This commit is contained in:
parent
275c4ee8ca
commit
a8bf8d7504
@ -172,6 +172,7 @@
|
||||
|
||||
nsd = {
|
||||
enable = true;
|
||||
remoteControl.enable = true;
|
||||
interfaces = ["0.0.0.0" "::"];
|
||||
zones = {
|
||||
"jakstys.lt.".data = myData.jakstysLTZone;
|
||||
@ -179,13 +180,27 @@
|
||||
$ORIGIN _acme-endpoint.grafana.jakstys.lt.
|
||||
$TTL 60
|
||||
@ SOA _acme-endpoint.grafana.jakstys.lt. motiejus.jakstys.lt. (2023080702 600 600 600 600)
|
||||
@ TXT foo2
|
||||
@ TXT foo3
|
||||
ns NS ${myData.hosts."vno1-oh2.servers.jakst".publicIP}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.nsd-control-setup = {
|
||||
requiredBy = ["nsd.service"];
|
||||
before = ["nsd.service"];
|
||||
unitConfig = {
|
||||
ConditionPathExists = "!/etc/nsd/nsd_control.key";
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
UMask = 0077;
|
||||
};
|
||||
path = [pkgs.nsd pkgs.openssl];
|
||||
script = ''nsd-control-setup'';
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostId = "f9117e1b";
|
||||
hostName = "vno1-oh2";
|
||||
|
Loading…
Reference in New Issue
Block a user