{"id":4530,"date":"2021-10-25T11:15:18","date_gmt":"2021-10-25T16:15:18","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=4530"},"modified":"2023-06-12T07:38:47","modified_gmt":"2023-06-12T12:38:47","slug":"how-can-i-test-my-migrated-website-before-changing-the-dns","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/","title":{"rendered":"How can I test my migrated website before changing the DNS?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#windows\" >Windows<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#windows_hosts_file_location\" >Windows Hosts file location:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#dns_flush_command\" >DNS Flush Command<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#macos\" >MacOS<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#macos_hosts_file_location\" >MacOS Hosts file location:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Once our support team migrates hosting accounts from a third-party service provider, you need to update the nameservers. Sometimes, the new hosting provider may lack some features, which might commerce consequences for the website. Best, what if we have a solution to check the website post-migration without updating nameservers or DNS? On every system, you have a <strong>hosts <\/strong>file through which you can manually force to request the data from a specific server for a particular domain. Learn, How can I test my migrated website before changing the DNS?<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"windows\"><\/span>Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"windows_hosts_file_location\"><\/span><strong>Windows Hosts file location:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Windows NT\/2000\/XP\/2003\/Vista\/7\/8\/10 \u2013 C:\\windows\\System32\\Drivers\\etc\\hosts\nWindows 95\/98\/ME \u2013 C:\\windows\\hosts<\/strong><\/code><\/pre>\n\n\n\n<p>1. For this article, we have Windows 10 OS system. First, navigate to <strong>C:\\Windows\\System32\\drivers\\etc<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"884\" height=\"395\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg\" alt=\"navigate-to-hosts-windows-os\" class=\"wp-image-4537\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg 884w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os-300x134.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os-768x343.jpg 768w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/figure>\n\n\n\n<p>2.&nbsp;<strong>Right-click&nbsp;<\/strong>on&nbsp;<strong>hosts&nbsp;<\/strong>\u2192&nbsp;<strong>Edit&nbsp;<\/strong>with preferred&nbsp;<strong>file editor<\/strong>&nbsp;(Run as Administrator). You can use windows default NotePad application to edit file instead of going with Notepad ++, which we&#8217;ve used for this article.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"552\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/edit-windows-hosts-files-using-editor-1024x552.jpg\" alt=\"edit-windows-hosts-files-using-editor\" class=\"wp-image-4536\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/edit-windows-hosts-files-using-editor-1024x552.jpg 1024w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/edit-windows-hosts-files-using-editor-300x162.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/edit-windows-hosts-files-using-editor-768x414.jpg 768w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/edit-windows-hosts-files-using-editor.jpg 1071w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3. Now, enter the domain following the server IP address.<\/p>\n\n\n\n<p><strong>Format:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>&lt;IP Address&gt; domainame.com www.domainame.com<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>8.8.8.8 kh-demo.com www.kh-demo.com<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"857\" height=\"756\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-a-record-entry-in-windows-hosts-file.jpg\" alt=\"add-a-record-entry-in-windows-hosts-file\" class=\"wp-image-4534\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-a-record-entry-in-windows-hosts-file.jpg 857w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-a-record-entry-in-windows-hosts-file-300x265.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-a-record-entry-in-windows-hosts-file-768x677.jpg 768w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/figure>\n\n\n\n<p>4. Finally, <strong>save <\/strong>the <strong>file<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"949\" height=\"778\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-my-migrated-website-before-changing-the-DNS-windows.jpg\" alt=\"test-my-migrated-website-before-changing-the-DNS-windows\" class=\"wp-image-4539\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-my-migrated-website-before-changing-the-DNS-windows.jpg 949w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-my-migrated-website-before-changing-the-DNS-windows-300x246.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-my-migrated-website-before-changing-the-DNS-windows-768x630.jpg 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p>5. Windows maintain DNS cache on the system. Next, you need to flush the DNS using Command Prompt (CMD).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"dns_flush_command\"><\/span><strong><strong>DNS Flush Command<\/strong><\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>ipconfig\/flushdns<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"949\" height=\"500\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/dns-cache-flushed-windows-os.jpg\" alt=\"dns-cache-flushed-windows-os\" class=\"wp-image-4535\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/dns-cache-flushed-windows-os.jpg 949w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/dns-cache-flushed-windows-os-300x158.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/dns-cache-flushed-windows-os-768x405.jpg 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p>6. To test the made configuration, use the ping command on command prompt,<\/p>\n\n\n\n<p><strong>Syntax Of Ping Command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>ping &lt;IP ADDRESS \/ DOMAIN&gt;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"857\" height=\"504\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-completed-hosts-file-windows-os.jpg\" alt=\"test-completed-hosts-file-windows-os\" class=\"wp-image-4538\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-completed-hosts-file-windows-os.jpg 857w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-completed-hosts-file-windows-os-300x176.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/test-completed-hosts-file-windows-os-768x452.jpg 768w\" sizes=\"(max-width: 857px) 100vw, 857px\" \/><\/figure>\n\n\n\n<p>You have successfully locally propagated the domain to a server IP address. Now, visit the migrated version of your website by visiting www.example.com or http:\/\/example.com in your browser window.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"macos\"><\/span>MacOS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this operation, we need to use the Terminal of MacOS. Let&#8217;s get started!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"macos_hosts_file_location\"><\/span> <strong>MacOS Hosts file location:<\/strong> <span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>\/etc\/hosts<\/strong><\/code><\/pre>\n\n\n\n<p>1. <strong>Open Terminal <\/strong>by navigating to <strong>Applications <\/strong>\u2192 <strong>Utilities<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"644\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-terminal-1024x644.jpg\" alt=\"open-terminal\" class=\"wp-image-4545\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-terminal-1024x644.jpg 1024w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-terminal-300x189.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-terminal-768x483.jpg 768w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-terminal.jpg 1253w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>2. You can edit the hosts file using any of the available file editors. In this article, we will use a nano application to edit the hosts file <em>(You will be prompted for your password for sudo access.)<\/em>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo nano \/etc\/hosts<\/strong><\/code><\/pre>\n\n\n\n<p>If it does not exist you can also try<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>nano \/etc\/hosts<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"847\" height=\"446\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-hosts-file-macos2.jpg\" alt=\"\" class=\"wp-image-4547\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-hosts-file-macos2.jpg 847w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-hosts-file-macos2-300x158.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/open-hosts-file-macos2-768x404.jpg 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>3. Just as with the Windows steps, you can add additional lines to this file that will point requests for a particular domain to your new server\u2019s IP address.<\/p>\n\n\n\n<p><strong>Format<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>&lt;IP Address&gt; domainame.com<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>8.8.8.8 kh-demo.com<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"644\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-example-entry-in-etc-hosts-macos-1024x644.jpg\" alt=\"add-example-entry-in-etc-hosts-macos\" class=\"wp-image-4542\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-example-entry-in-etc-hosts-macos-1024x644.jpg 1024w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-example-entry-in-etc-hosts-macos-300x189.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-example-entry-in-etc-hosts-macos-768x483.jpg 768w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/add-example-entry-in-etc-hosts-macos.jpg 1253w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Now, type <strong>CTRL + X <\/strong>to save the file.<\/p>\n\n\n\n<p>5. MacOS maintain DNS cache on the system. Next, you need to flush the DNS using the following command depending on the MacOS version,<\/p>\n\n\n\n<p><strong>El Capitan (10.11), Sierra (10.12), High Sierra (10.13), Mojave (10.14), and Catalina (10.15)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo killall -HUP mDNSResponder<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Yosemite (10.10)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo discoveryutil udnsflushcaches<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Lion (10.7), Mountain Lion (10.8), and Mavericks (10.9)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>sudo killall -HUP mDNSResponder<\/strong><\/code><\/pre>\n\n\n\n<p><strong>Snow Leopard (10.6)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>dscacheutil -flushcache<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"847\" height=\"446\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/flush-dns-macos.jpg\" alt=\"flush-dns-macos\" class=\"wp-image-4543\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/flush-dns-macos.jpg 847w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/flush-dns-macos-300x158.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/flush-dns-macos-768x404.jpg 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>6. To test the made configuration, use the ping command on terminal,<\/p>\n\n\n\n<p><strong>Syntax Of Ping Command<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>ping &lt;IP ADDRESS \/ DOMAIN&gt;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"847\" height=\"446\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/ping-test-macos.jpg\" alt=\"ping-test-macos\" class=\"wp-image-4546\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/ping-test-macos.jpg 847w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/ping-test-macos-300x158.jpg 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/ping-test-macos-768x404.jpg 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now that we&#8217;ve gone over how to test my migrated website before changing the DNS. This article is helpful before updating the nameservers. Once you&#8217;re done with testing, remove the entry from the respective hosts file.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.knownhost.com\/\">KnownHost<\/a>&nbsp;offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You\u2019re not using KnownHost for the best webhosting experience? Well, why not? Check with&nbsp;<a href=\"https:\/\/www.knownhost.com\/contact\">our Sales team<\/a>&nbsp;to see what can KnownHost do for you in improving your webhosting experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once our support team migrates hosting accounts from a third-party service provider, you need to update the nameservers. Sometimes, the new hosting provider may lack some features, which might commerce consequences for the website. Best, what if we have a solution to check the website post-migration without updating nameservers or DNS? On every system, you [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[109,128,117,123,204,211],"class_list":["post-4530","post","type-post","status-publish","format-standard","hentry","category-getting-started","tag-cpanel","tag-directadmin","tag-dns","tag-linux","tag-migrations","tag-website-migrations"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How can I test my migrated website before changing the DNS? - KnownHost<\/title>\n<meta name=\"description\" content=\"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can I test my migrated website before changing the DNS? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-25T16:15:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-12T12:38:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg\" \/>\n<meta name=\"author\" content=\"Somesh Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Somesh Z\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/\"},\"author\":{\"name\":\"Somesh Z\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"headline\":\"How can I test my migrated website before changing the DNS?\",\"datePublished\":\"2021-10-25T16:15:18+00:00\",\"dateModified\":\"2023-06-12T12:38:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/\"},\"wordCount\":514,\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/navigate-to-hosts-windows-os.jpg\",\"keywords\":[\"cpanel\",\"directadmin\",\"dns\",\"linux\",\"migrations\",\"website migrations\"],\"articleSection\":[\"Getting Started\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/\",\"name\":\"How can I test my migrated website before changing the DNS? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/navigate-to-hosts-windows-os.jpg\",\"datePublished\":\"2021-10-25T16:15:18+00:00\",\"dateModified\":\"2023-06-12T12:38:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\"},\"description\":\"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/navigate-to-hosts-windows-os.jpg\",\"contentUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/navigate-to-hosts-windows-os.jpg\",\"width\":884,\"height\":395,\"caption\":\"navigate-to-hosts-windows-os\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-test-my-migrated-website-before-changing-the-dns\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can I test my migrated website before changing the DNS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8b518f13cf69dd00d147e577d63ff3b1\",\"name\":\"Somesh Z\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g\",\"caption\":\"Somesh Z\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can I test my migrated website before changing the DNS? - KnownHost","description":"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.","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:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/","og_locale":"en_US","og_type":"article","og_title":"How can I test my migrated website before changing the DNS? - KnownHost","og_description":"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.","og_url":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/","og_site_name":"KnownHost","article_published_time":"2021-10-25T16:15:18+00:00","article_modified_time":"2023-06-12T12:38:47+00:00","og_image":[{"url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg","type":"","width":"","height":""}],"author":"Somesh Z","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Somesh Z","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/"},"author":{"name":"Somesh Z","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"headline":"How can I test my migrated website before changing the DNS?","datePublished":"2021-10-25T16:15:18+00:00","dateModified":"2023-06-12T12:38:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/"},"wordCount":514,"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg","keywords":["cpanel","directadmin","dns","linux","migrations","website migrations"],"articleSection":["Getting Started"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/","url":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/","name":"How can I test my migrated website before changing the DNS? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#primaryimage"},"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg","datePublished":"2021-10-25T16:15:18+00:00","dateModified":"2023-06-12T12:38:47+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1"},"description":"Test the websites before migration by locally resolving the domain with the server IP address. We have covered MacOS, Windows platforms.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#primaryimage","url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg","contentUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/10\/navigate-to-hosts-windows-os.jpg","width":884,"height":395,"caption":"navigate-to-hosts-windows-os"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-test-my-migrated-website-before-changing-the-dns\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How can I test my migrated website before changing the DNS?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/8b518f13cf69dd00d147e577d63ff3b1","name":"Somesh Z","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/276c97317c2d6905cc5a1bd9ceb10a0fd121cc4da22126f648fa88f95dcf32dd?s=96&d=mm&r=g","caption":"Somesh Z"}}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/4530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=4530"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/4530\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=4530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=4530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=4530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}