Microsoft IIS 10.0 – Understanding wildcard hosts

Initial Configurations of Windows server 2019

In this recipe, we are going to understand wildcard hosts. We will create a few to demonstrate wildcard host websites and get an overview of it.

Let’s understand wildcard DNS in detail.

Getting ready

To step through this recipe , you will need a running IIS 10.0 instance.

How to do it…

  1. Open Internet Explorer on your Windows 10 PC or Windows Server 2016. I am using a Windows 10 PC.



  1. Go to the address bar of any browser and type the URL You will be redirected to the default home page of
  1. The website’s domain name is, whose DNS record is present on a DNS registration server and points to a web hosting server such as IIS 10.0. Once you access the website’s domain name, the DNS server will translate the name to an IP and forward the request to the web server (IIS 10.0 or similar). Then, you will see the website’s home page displayed.



  1. Now, open the website:

Here, we are accessing the subdomain demo, and the main, or parent, domain is It has been created for demonstration purposes; the subdomain site may later be removed by the owner, in general, there is no guarantee that a subdomain will stay forever for reader access.

For example, consider a company that has several branches over the world. The company doesn’t want to change the main domain name, so they decide to create a wildcard host or subdomain or child domain of the main domain. Let’s see how we can use the main domain and subdomain.

The company name is The main domain for the demo of the product section we have created is For the UAE office, we can add the subdomain

Wildcard hosts can be used in several ways, as per the company’s requirements.

In the next recipe, we will learn how to create a wildcard host on IIS 10.0.

How it works…

In this recipe, we has an overview of wildcard hosts, also called subdomains or child domains. We have a parent domain called, and we created We can use different names and create unlimited wildcard hosts for our parent domain. For a wildcard host, there is no need to pay any extra fees for perform registration. If you have a parent domain, you can create unlimited wildcard hosts.

We launched the URL We then got redirected to the home page of Next, we opened the URL We were redirected to the home page of

We also discussed the basics of DNS.

Comments are closed.