Wildcard Subdomains in Windows DNS

On a test web server you may have the need to host multiple websites under several subdomains:

site1.server.domain.local
site2.server.domain.local
site3.server.domain.local

Setting up the host headers is straightforward, but a bit of work is required in Windows DNS to get the subdomains working correctly.


  1. Launch DNS console
  2. Expand Forward Lookup Zones
  3. Right click on your domain and click "New Domain"
  4. Enter the name of your server (if that's what you're using as the top level of the sub domain)
  5. Right click the new domain and click "New Host (A or AAAA)"
  6. Enter "*" (without the quotes) for the name and then the IP address of your server
  7. Click OK
  8. On the server in a raised cmd prompt: 
    1. ipconfig /flushdns
    2. ipconfig /registerdns
  9. All done and your your subdomains will be resolved.

Comments

Popular posts from this blog

Avoid Microsoft Intune if you use G-Suite and Android

DFS "Waiting for Initial Replication"

Setting Wallpaper for a Remote Desktop Session