Using isc-dhcp-server
on Debian Jessie, I'd like to block DHCP requests based on parts of their hostnames - specifically, if the hostname contains the RegEx string somewhere "iPhone|android-". My current solution is to wait until they have a lease, and monitor for those devices, and manually add the MAC address to the Blacklist file.
This black list method is getting quite large (almost 256 entries), and getting harder to maintain.
I understand how to check the beginning of the hostname to determine the class, but how do I check from any part of the hostname to determine which class to assign it?