forked from zentralwerk/network
nixos-module/container/dhcp-server: set dhcp6 dns info
This commit is contained in:
parent
aa81a890f3
commit
a138bc2d98
|
@ -52,7 +52,7 @@ in
|
|||
space = "dhcp4";
|
||||
name = "domain-name-servers";
|
||||
code = 6;
|
||||
data = "172.20.73.8, 9.9.9.9";
|
||||
data = "${config.site.net.serv.hosts4.dnscache}, 9.9.9.9";
|
||||
} ];
|
||||
ddns-qualifying-suffix = domainName;
|
||||
reservations = lib.pipe dhcp.fixed-hosts [
|
||||
|
@ -200,17 +200,17 @@ in
|
|||
} ];
|
||||
valid-lifetime = dhcp.time;
|
||||
max-valid-lifetime = dhcp.max-time;
|
||||
#option-data = [ {
|
||||
# space = "dhcp6";
|
||||
# name = "domain-search";
|
||||
# code = 24;
|
||||
# data = domainName;
|
||||
#} {
|
||||
# space = "dhcp6";
|
||||
# name = "dns-servers";
|
||||
# code = 23;
|
||||
# data = "172.20.73.8, 9.9.9.9";
|
||||
#} ];
|
||||
option-data = [ {
|
||||
space = "dhcp6";
|
||||
name = "domain-search";
|
||||
code = 24;
|
||||
data = domainName;
|
||||
} {
|
||||
space = "dhcp6";
|
||||
name = "dns-servers";
|
||||
code = 23;
|
||||
data = "${config.site.net.serv.hosts6.dn42.dnscache}, 2620:fe::9";
|
||||
} ];
|
||||
ddns-generated-prefix = "d";
|
||||
ddns-qualifying-suffix = domainName;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue