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.
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.
- Launch DNS console
- Expand Forward Lookup Zones
- Right click on your domain and click "New Domain"
- Enter the name of your server (if that's what you're using as the top level of the sub domain)
- Right click the new domain and click "New Host (A or AAAA)"
- Enter "*" (without the quotes) for the name and then the IP address of your server
- Click OK
- On the server in a raised cmd prompt:
- ipconfig /flushdns
- ipconfig /registerdns
- All done and your your subdomains will be resolved.
Comments
Post a Comment