A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Unfortunately, Microsoft updated the way Dynamic distribution group filters work a while back, so you cannot directly create a rule based on the "email domain" anymore (see https://practical365.com/dynamic-distribution-group-wildcard/ if you want additional details).
Instead, you can use other attributes, where applicable, or leverage the set of customAttributeXX, like on your screenshot above. You will have to manually populate those values, either in your on-premises AD (if you are syncing objects) or in Exchange Online (for cloud-created objects). PowerShell can of course help with that, here's an example:
Get-Mailbox -Filter {UserPrincipalName -like "*@domainA.com"} | Set-Mailbox -CustomAttribute1 blabla
Note that I am using the UserPrincipalName value here, as we cannot leverage the same operators with PrimarySmtpAddress (see the link above). In most cases, the UPN value should match the primary alias, so you should be fine. If you must use the PrimarySmtpAddress value instead, you can only do so via client-side filtering:
Get-Mailbox -ResultSize Unlimited | ? {$_.PrimarySmtpAddress -like "*@domainA.com"} | Set-Mailbox -CustomAttribute1 blabla
Once you've done with setting the attribute values, you can use the UI to create the DDG, or do it via PowerShell:
New-DynamicDistributionGroup -Name blabla -RecipientFilter {CustomAttribute1 -eq "blabla"}