Group Assignment You could assign a specific location/cost center/corporate unit to these hosts and then limit the DC license to these elements using the "Group assignment" tab. You'll also have to make sure the license consumption order is set correctly.
Manual allocation You could simply allocate those machines to the DC license yourself. Depending on the quantity and fluctuation in your environment, you might want to go for an automated option. In that case, please have a look at option 3.
Automatic allocation You can certainly define a "logic" in SQL to identify those hosts (I've done so myself in the past repeatedly). The results can be fed to a business import to automatically allocate these machines to the correct license regularly. There are a few more details to consider, but I guess you should get the general idea from this description.
Dec 12, 201903:04 AM - edited Dec 12, 201903:05 AM