The DHCP servers "shared-network" level only makes sense if I can specify configuration items that can be inherited by individual subnets.
This is now possible for name-servers and the domain-name
[email protected]# show service dhcp-server { shared-network-name LAN { domain-name zzz.com name-server 5.5.5.5 subnet 10.0.0.0/24 { default-router 1.1.1.1 domain-name foo.com name-server 1.1.1.1 range 0 { start 10.0.0.19 stop 10.0.0.88 } } } }
This generatesd the DHCPd config:
# Shared network configration(s) shared-network LAN { option domain-name-servers 5.5.5.5; option domain-name "zzz.com"; subnet 10.0.0.0 netmask 255.255.255.0 { option domain-name-servers 1.1.1.1; option routers 1.1.1.1; option domain-name "foo.com"; default-lease-time 86400; max-lease-time 86400; range 10.0.0.19 10.0.0.88; } on commit { set shared-networkname = "LAN"; } }