Append DNS Suffix to some hosts in inventory

Q: append a specific DNS suffix to a subset of hosts via group_vars?

My organization uses a dynamic inventory generated from multiple sources that contains hosts with varying DNS suffixes listed by hostname only, not FQDN.

Hosts are generated and added to the inventory by hostname without the DNS suffix. This works well for the most part, but there are certain groups of hosts that we need to append a specific DNS to. Although it could be possible to do this in the inventory, either manually or via a post-processing script, I’d like to do this in the group_vars rather than disrupt our current inventory process,which works really well aside from this quirk. The group of hosts in question is already grouped by properties extracted from the sources queried to build the inventory.

Is there any way to always append a specific DNS suffix to a subset of hosts (note that this subset is already parsed into a group that I can call from ansible)

Thanks!!