{"id":20418,"date":"2020-04-03T09:31:58","date_gmt":"2020-04-03T06:31:58","guid":{"rendered":"https:\/\/help.superhosting.bg\/?post_type=ht_kb&#038;p=20418"},"modified":"2021-11-08T14:19:12","modified_gmt":"2021-11-08T11:19:12","slug":"hosts-file-2","status":"publish","type":"ht_kb","link":"https:\/\/help.superhosting.bg\/en\/hosts-file.html","title":{"rendered":"See the website, before changing the DNS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely. In order to do so you need to have an active hosting account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use this method if you haven\u2019t pointed your domain with an A record or you haven\u2019t set up the Name Servers, or you want to see the changes you made, without having to wait for the DNS propagation time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to access your website you will need to add your domain to the hosts file in your operating system. This way your domain will load up directly from the server, but only for your computer. This is very useful if you are transferring your website to SuperHosting.BG and you want to make sure that everything is working correctly before having the domain redirected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The hosts file is located in a different place if you are using different operating systems:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Operating system<\/th><th>Version<\/th><th>Location of the hosts file<\/th><\/tr><\/thead><tbody><tr><td>Windows<\/td><td>7, 8, 10<\/td><td>C:\\Windows\\System32\\drivers\\etc\\hosts<\/td><\/tr><tr><td>macOS<\/td><td>Mac OS X 10.2 and next<\/td><td>\/private\/etc\/hosts<\/td><\/tr><tr><td>Unix\/Linux<\/td><td>&nbsp;<\/td><td>\/etc\/hosts<\/td><\/tr><tr><td>Android<\/td><td>&nbsp;<\/td><td>\/system\/etc\/hosts<\/td><\/tr><tr><td>iOS<\/td><td>iOS 2.0 and next<\/td><td>\/system\/etc\/hosts<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Editing the hosts file in Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you want to edit the hosts file and you are using Windows you can copy the file from C:\\Windows\\System32\\drivers\\etc and paste it on your desktop. Then, you can open it with a text editor like Notepad. In the end of the file you need to add the IP address of the server on which your hosting account is located and the domain with which it is associated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>91.196.0.1 mysupersite.com www.mysupersite.com<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will need to change the example information with your domain and the IP address of the server on which your hosting account is located.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find what is the IP address of the server that you need to put in the hosts file in cPanel in the General Information tab under Shared IP Address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you have added your information in the hosts file you need to save it and place it back into the directory you extracted it from in the first place. In the example above, since it is Windows OS, you need to save it to C:\\Windows\\System32\\drivers\\etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you just need to restart your browser and type in your domain in the address bar. Now it will load up your website from your hosting account with us.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you have completed your tests it\u2019s good practice to delete the changes you made in the hosts file, by following the same exact procedure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"no","footnotes":""},"ht-kb-category":[],"ht-kb-tag":[195],"class_list":["post-20418","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_tag-dns-records"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"SuperHosting.BG\"\/>\n\t<meta name=\"keywords\" content=\"hosts\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/help.superhosting.bg\/en\/hosts-file.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\n\t\t<link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\">\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase\" \/>\n\t\t<meta property=\"og:description\" content=\"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/help.superhosting.bg\/en\/hosts-file.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-04-03T06:31:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-11-08T11:19:12+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/superhosting\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@superhostingbg\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase\" \/>\n\t\t<meta name=\"twitter:description\" content=\"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@superhostingbg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"position\":1,\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/tag\\\/dns-records#listItem\",\"name\":\"DNS Settings\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/tag\\\/dns-records#listItem\",\"position\":2,\"name\":\"DNS Settings\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/tag\\\/dns-records\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#listItem\",\"name\":\"See the website, before changing the DNS\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#listItem\",\"position\":3,\"name\":\"See the website, before changing the DNS\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/tag\\\/dns-records#listItem\",\"name\":\"DNS Settings\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\",\"name\":\"SuperHosting.BG\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/SH-LogotypeEN-ScreenOrange-Three-800-01.png\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html\\\/#organizationLogo\",\"width\":800,\"height\":436},\"image\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/superhosting\",\"https:\\\/\\\/www.twitter.com\\\/superhostingbg\",\"https:\\\/\\\/www.instagram.com\\\/superhosting.bg\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SuperHostingBg\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/superhosting-bg\\\/\",\"https:\\\/\\\/soundcloud.com\\\/user-391462588-865926075\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh\",\"name\":\"SuperHosting.BG\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SuperHosting.BG\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#webpage\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html\",\"name\":\"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase\",\"description\":\"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/hosts-file.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"datePublished\":\"2020-04-03T09:31:58+03:00\",\"dateModified\":\"2021-11-08T14:19:12+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"name\":\"\\u041f\\u043e\\u043c\\u043e\\u0449\\u043d\\u0430 \\u0441\\u0442\\u0440\\u0430\\u043d\\u0438\\u0446\\u0430\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase","description":"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.","canonical_url":"https:\/\/help.superhosting.bg\/en\/hosts-file.html","robots":"max-image-preview:large","keywords":"hosts","webmasterTools":{"miscellaneous":"&lt;link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\"&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","position":1,"name":"\u041d\u0430\u0447\u0430\u043b\u043e","item":"https:\/\/help.superhosting.bg\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/tag\/dns-records#listItem","name":"DNS Settings"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/tag\/dns-records#listItem","position":2,"name":"DNS Settings","item":"https:\/\/help.superhosting.bg\/en\/tag\/dns-records","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#listItem","name":"See the website, before changing the DNS"},"previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","name":"\u041d\u0430\u0447\u0430\u043b\u043e"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#listItem","position":3,"name":"See the website, before changing the DNS","previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/tag\/dns-records#listItem","name":"DNS Settings"}}]},{"@type":"Organization","@id":"https:\/\/help.superhosting.bg\/en\/#organization","name":"SuperHosting.BG","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","url":"https:\/\/help.superhosting.bg\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/help.superhosting.bg\/wp-content\/uploads\/2021\/01\/SH-LogotypeEN-ScreenOrange-Three-800-01.png","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html\/#organizationLogo","width":800,"height":436},"image":{"@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/superhosting","https:\/\/www.twitter.com\/superhostingbg","https:\/\/www.instagram.com\/superhosting.bg","https:\/\/www.youtube.com\/user\/SuperHostingBg","https:\/\/www.linkedin.com\/company\/superhosting-bg\/","https:\/\/soundcloud.com\/user-391462588-865926075"]},{"@type":"Person","@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author","url":"https:\/\/help.superhosting.bg\/en\/author\/authorsh","name":"SuperHosting.BG","image":{"@type":"ImageObject","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g","width":96,"height":96,"caption":"SuperHosting.BG"}},{"@type":"WebPage","@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#webpage","url":"https:\/\/help.superhosting.bg\/en\/hosts-file.html","name":"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase","description":"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/help.superhosting.bg\/en\/#website"},"breadcrumb":{"@id":"https:\/\/help.superhosting.bg\/en\/hosts-file.html#breadcrumblist"},"author":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"creator":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"datePublished":"2020-04-03T09:31:58+03:00","dateModified":"2021-11-08T14:19:12+03:00"},{"@type":"WebSite","@id":"https:\/\/help.superhosting.bg\/en\/#website","url":"https:\/\/help.superhosting.bg\/en\/","name":"\u041f\u043e\u043c\u043e\u0449\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","inLanguage":"en-US","publisher":{"@id":"https:\/\/help.superhosting.bg\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","og:type":"article","og:title":"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase","og:description":"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.","og:url":"https:\/\/help.superhosting.bg\/en\/hosts-file.html","article:published_time":"2020-04-03T06:31:58+00:00","article:modified_time":"2021-11-08T11:19:12+00:00","article:publisher":"https:\/\/www.facebook.com\/superhosting","twitter:card":"summary","twitter:site":"@superhostingbg","twitter:title":"How can I preview my website, before changing the DNS records for my domain? | KnowledgeBase","twitter:description":"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.","twitter:creator":"@superhostingbg"},"aioseo_meta_data":{"post_id":"20418","title":"How can I preview my website, before changing the DNS records for my domain? | #site_title","description":"You can access your domain using a browser, even if its DNS records are not yet set up or the DNS propagation time has not passed completely.","keywords":[{"label":"hosts","value":"hosts"}],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":{"id":"aioseo-web-page-63465789387d8","slug":"web-page","graphName":"WebPage","label":"Web Page","properties":{"type":"WebPage","name":"","description":""}}},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":0,"ai":null,"created":"2021-01-28 14:15:29","updated":"2022-10-12 05:58:33","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/20418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=20418"}],"version-history":[{"count":7,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/20418\/revisions"}],"predecessor-version":[{"id":28050,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/20418\/revisions\/28050"}],"wp:attachment":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=20418"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-category?post=20418"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=20418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}