{"id":235,"date":"2026-01-01T02:00:03","date_gmt":"2026-01-01T02:00:03","guid":{"rendered":"https:\/\/windows-vps.org\/blog\/?p=235"},"modified":"2026-08-13T22:37:13","modified_gmt":"2026-08-13T22:37:13","slug":"a-step-by-step-guide-on-how-to-add-domain-to-windows-vps","status":"publish","type":"post","link":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/","title":{"rendered":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Pointing a Domain at Windows Server in Four Steps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pointing a domain at a Windows Server VM is a four-step job: create the DNS records, add the site in IIS, bind the host header, and attach a certificate. Each step fails in predictable ways \u2014 wrong record type, cached TTLs, a missing binding \u2014 so this guide shows the exact records and settings to use, from a fresh server to a working <code>https:\/\/yourdomain.com<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Decide Where DNS Lives<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can manage DNS at your domain registrar (default, fine for most setups), at your hosting provider if they offer a DNS panel, or at a third-party DNS service. For a single domain on one server, the registrar&#8217;s DNS panel is sufficient; the plans listed in <a href=\"https:\/\/windows-vps.org\/#providers\">our Windows VPS comparison table<\/a> note which hosts include their own DNS management panel. What matters is that the records below resolve to your server&#8217;s public IPv4 address, so write that address down before you start.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Create the Records<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the DNS panel, create these records:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Type<\/th><th>Name<\/th><th>Value<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td>A<\/td><td>@<\/td><td>your server&#8217;s IPv4<\/td><td>Resolves the bare domain to your server<\/td><\/tr><tr><td>AAAA<\/td><td>@<\/td><td>your server&#8217;s IPv6<\/td><td>Optional, only if the host assigns IPv6<\/td><\/tr><tr><td>CNAME<\/td><td>www<\/td><td>yourdomain.com<\/td><td>Aliases www to the bare domain<\/td><\/tr><tr><td>MX<\/td><td>@<\/td><td>mail server hostname<\/td><td>Only if you run email; never point MX at the VPS otherwise<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Set the TTL to 300\u2013600 seconds (5\u201310 minutes) while you are migrating, then raise it to 3600 or more once everything works. A low TTL during setup means your test machines pick up changes quickly instead of caching a stale IP for an hour.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Add the IIS Site and Host Header<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open IIS Manager, right-click <strong>Sites<\/strong> and choose <strong>Add Website<\/strong>. Give the site a name, point the physical path at your content folder, and under <strong>Binding<\/strong> set: Type <code>http<\/code>, IP address <code>All Unassigned<\/code>, Port <code>80<\/code>, and Host name <code>yourdomain.com<\/code>. Add a second binding with host name <code>www.yourdomain.com<\/code> on the same port.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The host header is what lets IIS tell requests for <code>yourdomain.com<\/code> apart from requests for any other domain on the same IP. If you skip it, IIS serves the default site for every host name, which is the most common reason &#8220;the domain shows the wrong website&#8221;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Add HTTPS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Get a certificate for both <code>yourdomain.com<\/code> and <code>www.yourdomain.com<\/code>. The practical options are a free Let&#8217;s Encrypt certificate issued and renewed automatically with win-acme, or a commercial certificate from your registrar. Then add a <code>https<\/code> binding on port 443 with the certificate selected and SNI enabled, and use IIS URL Rewrite to redirect all HTTP traffic to HTTPS. If you skip the www binding, visitors to <code>www.yourdomain.com<\/code> will hit a certificate name mismatch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Verify End to End<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Run <code>nslookup yourdomain.com<\/code> and <code>nslookup www.yourdomain.com<\/code> \u2014 both must return your server&#8217;s IP.<\/li><li>Flush the local DNS cache (<code>ipconfig \/flushdns<\/code>) and retest from a phone on mobile data to bypass local caching.<\/li><li>Test the site over HTTP and HTTPS, then check the certificate with SSL Labs&#8217; analyzer for chain and TLS issues.<\/li><li>Confirm ports 80 and 443 are open in Windows Firewall \u2014 a blocked port looks exactly like a DNS problem from the outside.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes to Avoid<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>A record still pointing at the old server IP after a reinstall or migration.<\/li><li>TTL set to hours before a planned IP change, forcing you to wait out the cache.<\/li><li>Host header only on the http binding, so the https site serves the wrong content.<\/li><li>Certificates without the www SAN, producing browser warnings on the www URL.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you are pointing a subdomain rather than the bare domain \u2014 for example <code>app.yourdomain.com<\/code> \u2014 the flow is identical: create an A record named <code>app<\/code> instead of <code>@<\/code>, and add an IIS binding with host name <code>app.yourdomain.com<\/code>. Wildcard certificates can cover many subdomains with a single cert, but each subdomain still needs its own host header binding. One more tip: if the site previously lived elsewhere and its old pages are indexed, keep the TTL low for a few days after switching so visitors and search engines converge on the new IP quickly instead of caching connection errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before You Bind: Choose a Host With Full DNS Control<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Binding a domain cleanly requires a server with its own public IPv4 address, an unfiltered firewall you control, and ideally a DNS panel or registrar integration. <a href=\"https:\/\/windows-vps.org\/#providers\">Our Windows VPS comparison table<\/a> lists providers that include a dedicated IPv4 and firewall control out of the box, so you are not fighting NAT or carrier-grade restrictions. If you plan to host several domains on one machine, our guide to IIS bindings, host headers, and SNI covers multi-site setups in depth.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Need a Windows Server VM with a dedicated IPv4 and full firewall control for your domain setup? <a href=\"https:\/\/affiliate.hostwinds.com\/idevaffiliate.php?id=33921&#038;url=3698\" target=\"_blank\" rel=\"noreferrer noopener sponsored\">Hostwinds&#8217; Windows VPS plans<\/a> include dedicated IP addresses and unmanaged access to Windows Firewall, and their support team can walk you through DNS configuration if you get stuck.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Before we dive into the steps, it&#8217;s essential to understand what a Windows VPS is. A Windows Virtual Private Server provides you with a dedicated environment on a physical server running the Windows operating system. This setup allows you to run applications, host websites, and manage resources independently, making it an excellent choice for businesses and developers.<\/p>\n","protected":false},"author":1,"featured_media":236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":3,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-235","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-guides"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v26.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS - Windows VPS Blog<\/title>\n<meta name=\"description\" content=\"Before we dive into the steps, it&#039;s essential to understand what a Windows VPS is. A Windows Virtual Private Server provides you with a dedicated environment on a physical server running the Windows operating system. This setup allows you to run applications, host websites, and manage resources independently, making it an excellent choice for businesses and developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS\" \/>\n<meta property=\"og:description\" content=\"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"Windows VPS Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-01T02:00:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-13T22:37:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"windows-vps\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"windows-vps\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/\",\"url\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/\",\"name\":\"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS - Windows VPS Blog\",\"isPartOf\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg\",\"datePublished\":\"2026-01-01T02:00:03+00:00\",\"dateModified\":\"2026-08-13T22:37:13+00:00\",\"author\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58\"},\"description\":\"Before we dive into the steps, it's essential to understand what a Windows VPS is. A Windows Virtual Private Server provides you with a dedicated environment on a physical server running the Windows operating system. This setup allows you to run applications, host websites, and manage resources independently, making it an excellent choice for businesses and developers.\",\"breadcrumb\":{\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage\",\"url\":\"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg\",\"contentUrl\":\"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg\",\"width\":960,\"height\":640},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/windows-vps.org\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#website\",\"url\":\"https:\/\/windows-vps.org\/blog\/\",\"name\":\"Windows VPS Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/windows-vps.org\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58\",\"name\":\"windows-vps\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g\",\"caption\":\"windows-vps\"},\"sameAs\":[\"https:\/\/windows-vps.org\/blog\"],\"url\":\"https:\/\/windows-vps.org\/blog\/author\/myxiechengxuan\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS - Windows VPS Blog","description":"Before we dive into the steps, it's essential to understand what a Windows VPS is. A Windows Virtual Private Server provides you with a dedicated environment on a physical server running the Windows operating system. This setup allows you to run applications, host websites, and manage resources independently, making it an excellent choice for businesses and developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/","og_locale":"en_US","og_type":"article","og_title":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS","og_description":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS","og_url":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/","og_site_name":"Windows VPS Blog","article_published_time":"2026-01-01T02:00:03+00:00","article_modified_time":"2026-08-13T22:37:13+00:00","og_image":[{"width":960,"height":640,"url":"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg","type":"image\/jpeg"}],"author":"windows-vps","twitter_card":"summary_large_image","twitter_misc":{"Written by":"windows-vps","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/","url":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/","name":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS - Windows VPS Blog","isPartOf":{"@id":"https:\/\/windows-vps.org\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage"},"image":{"@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg","datePublished":"2026-01-01T02:00:03+00:00","dateModified":"2026-08-13T22:37:13+00:00","author":{"@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58"},"description":"Before we dive into the steps, it's essential to understand what a Windows VPS is. A Windows Virtual Private Server provides you with a dedicated environment on a physical server running the Windows operating system. This setup allows you to run applications, host websites, and manage resources independently, making it an excellent choice for businesses and developers.","breadcrumb":{"@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#primaryimage","url":"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg","contentUrl":"https:\/\/windows-vps.org\/blog\/wp-content\/uploads\/2025\/12\/33669-4.jpg","width":960,"height":640},{"@type":"BreadcrumbList","@id":"https:\/\/windows-vps.org\/blog\/a-step-by-step-guide-on-how-to-add-domain-to-windows-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/windows-vps.org\/blog\/"},{"@type":"ListItem","position":2,"name":"Pointing a Domain at Your Windows Server: DNS Records, IIS Host Headers, and HTTPS"}]},{"@type":"WebSite","@id":"https:\/\/windows-vps.org\/blog\/#website","url":"https:\/\/windows-vps.org\/blog\/","name":"Windows VPS Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/windows-vps.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/44caceed916d0db318aa08d5623a7a58","name":"windows-vps","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/windows-vps.org\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f2573db5afcd1a6ab9abcc5d48fc8e42584bc87ab9d98cc156e5b2097766dd9?s=96&d=mm&r=g","caption":"windows-vps"},"sameAs":["https:\/\/windows-vps.org\/blog"],"url":"https:\/\/windows-vps.org\/blog\/author\/myxiechengxuan\/"}]}},"_links":{"self":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":5,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":616,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/posts\/235\/revisions\/616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/media\/236"}],"wp:attachment":[{"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/windows-vps.org\/blog\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}