Is it possible to create a dns profile that also respects local dns search domains as specified in system preferences -> Network -> interface -> advanced -> DNS
The DNS profiles are installed by the profile installer and are seen as a service in Network tab of system preferences.
I've checked the dictionary but don't see a way to enable the dns profile to use the local dns server when the local search domains are used because a request is made without a domain.
https://developer.apple.com/documentation/devicemanagement/dnssettings