# Domain Controller Setup

**Install AD DS and DNS:**

- Go to **Server Manager &gt; Manage &gt; Add Roles and Features**
- Add "Active Directory Domain Services" and "DNS Server"
- Promote the server to a Domain Controller:
    
    
    - Choose **"Add a new forest"**, name it (e.g., `lab.com`)

**Optional: Network Configuration for All VMs (If you are using Hyper-V):**

- Attach each VM to the **LabSwitch** network
- Assign static IP addresses:
    
    
    - On each VM:
        
        
        - Go to **Network Adapter Properties &gt; IPv4 &gt; Properties**
        - e.g.:
            
            
            - IP Address: 10.0.1.X
            - Subnet: 255.255.255.0
            - Gateway: 10.0.1.1
            - DNS:
                
                
                - For DC: `127.0.0.1`, and `1.1.1.1`
                - All other VMs: `IP of DC`, and `1.1.1.1`

**Join All Machines to the Domain**