use real event ip space
This commit is contained in:
parent
ed99a3710e
commit
712f0f4a17
15 changed files with 222 additions and 167 deletions
|
@ -28,41 +28,23 @@ let
|
|||
journal-content: all
|
||||
|
||||
zone:
|
||||
- domain: noc.eh22.intern
|
||||
- domain: eh22.intern
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
# configure static IP address
|
||||
networking.useDHCP = false;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
"10-mgmtNet" = {
|
||||
matchConfig.MACAddress = "bc:24:11:c1:8a:a4";
|
||||
address = [ "10.20.25.3/24" ];
|
||||
gateway = [ "10.20.25.2" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# enable knot authorative dns server
|
||||
# ref: https://search.nüschtos.de/?query=services.knot
|
||||
# https://www.knot-dns.cz/docs/3.4/html/configuration.html
|
||||
environment.etc =
|
||||
(lib.attrsets.mapAttrs' (name: value: {
|
||||
name = "knot/zones/noc.eh22.intern.zone";
|
||||
environment.etc = (
|
||||
lib.attrsets.mapAttrs' (name: value: {
|
||||
name = "knot/zones/${name}";
|
||||
value = {
|
||||
source = value;
|
||||
};
|
||||
}) zones)
|
||||
// {
|
||||
"resolv.conf".text = ''
|
||||
search noc.eh22.intern eh22.intern
|
||||
nameserver 10.20.25.5
|
||||
'';
|
||||
};
|
||||
}) zones
|
||||
);
|
||||
|
||||
services.knot = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue