Hello joaomfigueiredo,
Thank you for posting here.
From the following link, we can see:
By default the domain that the workstation is joined to is listed as the default domain name and other domain users have to always provide the user name as domain\username to login correctly.
I have done two tests below:
Test 1
I have two domain, a.com and b.com.
There is a domain-joined machine PC1 in a.com domain.
There is a domain user account named u1 in a.com domain.
There is a domain user account named t1 in b.com domain.
Tip: a.com and b.com are two forests with two-way forest trust.
By default a.com is the default domain.
When I use u1 to login to PC1, I enter the login name u1 (not A\u1), and then I can login directly to the domain a.com.
If I logon PC1 using the user account t1 in domain2 b.com, I must type B\t2.
Test 2
If I set b.com as the default domain on PC1.
When I use t1 to login to PC1, I enter the login name t1 (not B\t1), and then I can login directly to the domain b.com.
If I logon PC1 using the user account u1 in domain1 a.com, I must type A\u1.
Use GPOs to change default logon domain name in the logon screen
https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/change-default-logon-domain-name
I am sorry, I couldn't search any information about your desired setup or requirement.
However, based on the test in my lab above, maybe there is no such setting that allows the user to recognize domain2 without typing "DOMAIN2\".
Hope the information above is helpful. If anything is unclear, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.