2024-01-08 22:17:37 +00:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
2024-01-14 14:20:32 +00:00
|
|
|
inherit (config.lab.networking) publicIPv4 dockerSwarmInternalIPv4 dmzServicesIPv4 dmzServicesIPv6 dmzRouterIPv4;
|
2024-01-08 22:17:37 +00:00
|
|
|
in
|
2024-01-07 22:06:27 +00:00
|
|
|
{
|
|
|
|
no-resolv = true;
|
|
|
|
local = "/dmz/";
|
|
|
|
dhcp-fqdn = true;
|
|
|
|
no-hosts = true;
|
|
|
|
expand-hosts = true;
|
|
|
|
domain = "dmz";
|
|
|
|
dhcp-authoritative = true;
|
2024-01-12 23:05:25 +00:00
|
|
|
ra-param = "*,0,0";
|
|
|
|
alias = "${publicIPv4},${dockerSwarmInternalIPv4}";
|
|
|
|
log-dhcp = true;
|
|
|
|
log-queries = true;
|
|
|
|
port = "5353";
|
2024-01-14 14:20:32 +00:00
|
|
|
host-record = [
|
|
|
|
"hermes.dmz,${dmzServicesIPv4},${dmzServicesIPv6}"
|
|
|
|
"ipv4.hermes.dmz,${dmzServicesIPv4}"
|
|
|
|
"ipv6.hermes.dmz,${dmzServicesIPv6}"
|
|
|
|
];
|
2024-01-12 23:05:25 +00:00
|
|
|
|
|
|
|
server = [
|
|
|
|
dmzRouterIPv4
|
2024-01-14 14:20:32 +00:00
|
|
|
"/geokunis2.nl/${dmzServicesIPv4}"
|
|
|
|
"/kun.is/${dmzServicesIPv4}"
|
2024-01-12 23:05:25 +00:00
|
|
|
];
|
|
|
|
|
2024-01-07 22:06:27 +00:00
|
|
|
dhcp-range = [
|
|
|
|
"192.168.30.50,192.168.30.127,15m"
|
2024-01-13 16:33:14 +00:00
|
|
|
"2a0d:6e00:1a77:30::,ra-stateless,ra-names"
|
2024-01-07 22:06:27 +00:00
|
|
|
];
|
2024-01-12 23:05:25 +00:00
|
|
|
|
2024-01-07 22:06:27 +00:00
|
|
|
dhcp-host = [
|
|
|
|
"b8:27:eb:b9:ab:e2,esrom"
|
2024-01-08 22:17:37 +00:00
|
|
|
"ca:fe:c0:ff:ee:08,maestro,${dockerSwarmInternalIPv4}"
|
2024-01-07 22:06:27 +00:00
|
|
|
];
|
2024-01-12 23:05:25 +00:00
|
|
|
|
2024-01-07 22:06:27 +00:00
|
|
|
dhcp-option = [
|
2024-01-08 22:17:37 +00:00
|
|
|
"3,${dmzRouterIPv4}"
|
|
|
|
"option:dns-server,${dmzRouterIPv4}"
|
2024-01-13 16:33:14 +00:00
|
|
|
"option6:dns-server,[2a02:58:19a:30::1]"
|
2024-01-07 22:06:27 +00:00
|
|
|
];
|
2024-01-12 23:05:25 +00:00
|
|
|
|
2024-01-07 22:06:27 +00:00
|
|
|
address = [
|
2024-01-14 14:20:32 +00:00
|
|
|
"/ns.pizzapim.nl/ns.geokunis2.nl/${dmzServicesIPv4}"
|
|
|
|
"/ns.pizzapim.nl/ns.geokunis2.nl/${dmzServicesIPv6}"
|
2024-01-07 22:06:27 +00:00
|
|
|
];
|
|
|
|
}
|