Skip to main content

How to Bind a Domain Name to an IIS Website

This article explains how to bind a domain name to a website hosted on Internet Information Services (IIS). This process allows the server to recognize and route traffic for a specific domain to the correct website folder.

This article explains how to bind a domain name to a website hosted on Internet Information Services (IIS). This process allows the server to recognize and route traffic for a specific domain to the correct website folder.

Before you begin

You will need:

  • Administrator access to the Windows Server

  • The specific domain name (e.g., example.com) you wish to bind

  • The IP address of the server (if not using all available IP addresses)

Binding a domain name to an IIS website

  1. Open Internet Information Services (IIS) Manager.

  2. In the Connections pane, expand the server node and select Sites.

  3. Select the specific website from the list.

  4. In the Actions pane on the right, click Bindings....

  5. In the Site Bindings window, select the existing http or https binding and click Edit.

  6. In the Host name field, type the domain name (e.g., example.com).

  7. Click OK.

  8. If you need to add a second domain or a different protocol, click Add and enter the appropriate details.

  9. Click Close to exit the Site Bindings window.

Confirm the result

  • The Site Bindings window should now list the specific domain name in the Host name column.

  • When you navigate to the domain name in a web browser, the server will correctly load the content from the associated website folder.

Troubleshooting a binding that does not resolve

If the domain does not load correctly after binding, check the following:

  • DNS Records: Ensure the domain's A record (or CNAME) points to the correct server IP address.

  • Binding Conflicts: Ensure that no other website on the same IP address is using the exact same Host name.

  • IIS Restart: In some cases, a restart of the IIS service may be required to refresh the bindings.

Limitations

  • This procedure only configures the local IIS server to recognize the domain. It does not automatically update DNS records or create DNS entries.

  • If you are using a wildcard certificate, ensure the binding is configured to use the correct certificate when using the https protocol.

Did this answer your question?