You need to install WinNT and set it as Primary Domain controller, otherwise, it's all workgroups.
When you change workgroup to domain, you're just a NT workstation or NT server non domain. It then looks for a domain controller and registers the workstation/member server