1# suffix data expression 2# in fact ISC DHCP suffix can be reduced into Kea substring 3 4# empty configs are not accepted by Kea 5default-lease-time 1800; 6 7# use suffix in a reductible match 8class "reductible" { 9 match suffix(option host-name, 3); 10} 11 12subclass "reductible" "com" { 13 option domain-search "example.com"; 14} 15 16subclass "reductible" "org" { 17 option domain-search "example.org"; 18} 19 20# reduce literals too 21class "literal" { 22 match if option domain-name = suffix("www.example.com", 3); 23} 24 25# raw 26option domain-name = suffix(option domain-name, 3); 27