{"id":2333,"date":"2020-06-10T00:32:59","date_gmt":"2020-06-09T16:32:59","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=2333"},"modified":"2026-03-16T17:39:09","modified_gmt":"2026-03-16T09:39:09","slug":"switch-to-dns-website","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/switch-to-dns-website","title":{"rendered":"Switch to DNS: 7 Easy Steps to Switch Your Website to DNS"},"content":{"rendered":"<h2><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.itarian.com\/blog\/wp-content\/uploads\/2025\/06\/what-is-dns.png\" alt=\"switch to DNS\" width=\"230\" height=\"230\" \/><\/h2>\n<h2><strong>How do I check my website before I switch to DNS?<\/strong><\/h2>\n<p>This article will help you to check your website on a new server or new hosting account during the migration period, while your website is still up and pointing to the old server. Before you tell our help to point your website&#8217;s IP address to the new server to complete the migration, you will need to be sure that the website loads properly into the new server.<\/p>\n<p>Below are the steps to check your hosts file :<\/p>\n<p>1. Locate the HOSTS file on your computer. Typically it is in one of the following locations:<\/p>\n<p>Windows NT\/2000\/XP\/2003\/Vista\/7 : C:\\windows\\system32\\drivers\\etc\\hosts<\/p>\n<p>Windows 95\/98\/Me : C:\\windows\\hosts<\/p>\n<p>2. Open this file with a text editor such as Notepad or Wordpad.<\/p>\n<p>3. Right-click on Notepad and select the option to Run as Administrator, otherwise you may not be able to save this file later.<\/p>\n<p>Then, open the file. Consider performing a \u201cSave As\u201d so you have an original copy of the file that you can restore later.<br \/>\nYou will see two columns of information, the first containing IP addresses and the second containing host names.<br \/>\nBy default, a windows hosts file should be similar to the following:<\/p>\n<p>You can add additional lines to this file that will point requests for a particular domain to your new server\u2019s IP address. Example:<\/p>\n<p><strong>123.100.254.4 example.com<br \/>\n123.100.254.4\u00a0www.example.com<\/strong><\/p>\n<p>5. Save your changes.<\/p>\n<p>6. Restart any currently open browsers. You may also want to flush your DNS cache.<\/p>\n<p>In Windows XP, go to Start, and then Run, then type \u201ccmd\u201d and hit enter. Type the following:<\/p>\n<p><strong>ipconfig \/flushdns<\/strong><\/p>\n<p>7. Visit your new site using\u00a0http:\/\/example.com\/<\/p>\n<p>This is the procedure for switch your website to DNS. You can check the DNS <a href=\"https:\/\/www.whatsmydns.net\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">here<\/a>.<br \/>\nLearn the info General DNS Propagation Information\u00a0<a href=\"https:\/\/www.servergigabit.com\/guide\/kb\/general-dns-propagation-information\/\">Here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How do I check my website before I switch to DNS? This article will help you to check your website on a new server or new hosting account during the migration period, while your website is still up and pointing to the old server. Before you tell our help to point your website&#8217;s IP address to the new server to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[58],"kbtag":[1262],"class_list":["post-2333","kb","type-kb","status-publish","hentry","kbtopic-domain-name-server-dns","kbtag-dns"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/2333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=2333"}],"version-history":[{"count":7,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/2333\/revisions"}],"predecessor-version":[{"id":6340,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/2333\/revisions\/6340"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=2333"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2333"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}