# suffix data expression # in fact ISC DHCP suffix can be reduced into Kea substring # empty configs are not accepted by Kea default-lease-time 1800; # use suffix in a reductible match class "reductible" { match suffix(option host-name, 3); } subclass "reductible" "com" { option domain-search "example.com"; } subclass "reductible" "org" { option domain-search "example.org"; } # reduce literals too class "literal" { match if option domain-name = suffix("www.example.com", 3); } # raw option domain-name = suffix(option domain-name, 3); |