forked from zentralwerk/network
nixos-module/container/dhcp-server: make dhcp.router a flat hostName
This commit is contained in:
parent
9be5565030
commit
f4ac3f9edb
|
@ -18,7 +18,7 @@ lib.mkMerge (
|
|||
server = "priv${toString n}-gw";
|
||||
time = 120;
|
||||
max-time = 86400;
|
||||
router = "priv${toString n}-gw.priv${toString n}";
|
||||
router = "priv${toString n}-gw";
|
||||
};
|
||||
domainName = "priv${toString n}.zentralwerk.org";
|
||||
dynamicDomain = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
start = "172.20.78.2";
|
||||
end = "172.20.79.253";
|
||||
max-time = 3600;
|
||||
router = "pub-gw.pub";
|
||||
router = "pub-gw";
|
||||
server = "pub-gw";
|
||||
time = 300;
|
||||
};
|
||||
|
|
|
@ -48,7 +48,7 @@ in
|
|||
group {
|
||||
default-lease-time ${toString dhcp.time};
|
||||
max-lease-time ${toString dhcp.max-time};
|
||||
option routers ${config.site.net.${net}.hosts4.${builtins.replaceStrings [".${net}"] [""] dhcp.router}};
|
||||
option routers ${config.site.net.${net}.hosts4.${dhcp.router}};
|
||||
option domain-name "${domainName}";
|
||||
option domain-name-servers 172.20.73.8, 9.9.9.9;
|
||||
ddns-domainname "${domainName}";
|
||||
|
|
Loading…
Reference in New Issue
Block a user