Hi,
Based on my research, DC Locator uses the following algorithm to locate a domain controller by default:
Try to find a domain controller in the same site.
If no domain controller is available in the same site, try to find any domain controller in the domain.
If you enable the Try Next Closest Site setting, DC Locator uses the following algorithm to locate a domain controller:
Try to find a domain controller in the same site.
If no domain controller is available in the same site, try to find a domain controller in the next closest site. A site is closer if it has a lower site-link cost than another site with a higher site-link cost.
If no domain controller is available in the next closest site, try to find any domain controller in the domain.
For more information, you can refer to the following link:
https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/plan/enabling-clients-to-locate-the-next-closest-domain-controller
Best Regards,