{"id":4147,"date":"2020-05-23T05:52:07","date_gmt":"2020-05-23T05:52:07","guid":{"rendered":"https:\/\/cloudminister.com\/?p=4147"},"modified":"2020-05-23T05:52:07","modified_gmt":"2020-05-23T05:52:07","slug":"modify-the-hosts-file-in-different-os","status":"publish","type":"post","link":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/","title":{"rendered":"What is a HOSTS file and How do you modify the HOSTS file in different operating system?"},"content":{"rendered":"<p style=\"font-weight: 400;\"><strong>What is a HOSTS file and How do you modify the HOSTS file in the different operating systems?<\/strong><\/p>\n<p><b>&#8211;&gt;HOSTS File<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In your system, you want to access <\/span><a href=\"http:\/\/www.youdomain.com\/\"><span style=\"font-weight: 400;\">www.yourdomain.com<\/span><\/a><span style=\"font-weight: 400;\"> hostname your system first actually resolves the hostname with the IP address of the server.<\/span><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To resolve the IP address it will first check inside the HOSTS file which is a simple text file that store entries of hostname with the IP address, and if not found then it goes to your Internet Service Provider(ISP) or DNS server<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It is helpful in case of troubleshooting or publishing a website for testing purposes by giving entry in the HOSTS file which resolves hostname with IP address locally before checking in DNS.<\/span><\/p>\n<h3 style=\"font-weight: 200;\"><b>To modify your HOSTS file in Linux<\/b><\/h3>\n<p style=\"font-weight: 200;\"><span style=\"font-weight: 400;\">In Linux, the HOSTS file is found inside the \/etc directory in the form of a simple text file that can be modified by using text editors like:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a01)<\/span><span style=\"font-weight: 400;\"> nano<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a02)<\/span><span style=\"font-weight: 400;\">vi<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Open file using the nano editor:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># <\/span><span style=\"font-weight: 400;\">nano \/etc\/hosts<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">Open file using the vi editor:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># <\/span><span style=\"font-weight: 400;\">vi \/etc\/hosts<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Image<br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: Use sudo before the following command if you don\u2019t have root privileges:<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">After the file is open, give entries of IP address and hostname in the desired manner:<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">IP_address<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">Hostname<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">For example:<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">111.222.111.222<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">www.yourdomain.com<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">And after that safe file with:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1) Press<\/span><span style=\"font-weight: 400;\"> ctrl + o<\/span><span style=\"font-weight: 400;\"> to save file and <\/span><span style=\"font-weight: 400;\">ctrl + x<\/span><span style=\"font-weight: 400;\"> to exit from a file if you are using a nano editor.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2) Press <\/span><span style=\"font-weight: 400;\">Esc<\/span><span style=\"font-weight: 400;\"> button and write <\/span><span style=\"font-weight: 400;\">:wq<\/span><span style=\"font-weight: 400;\"> if you are using vi editor.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Image<\/span><\/p>\n<h3><b>To modify your HOSTS file in Windows 10<\/b><\/h3>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">In windows operating system the hosts file is found inside the <\/span><span style=\"font-weight: 400;\">c:\\\\windows\\System32\\drivers\\etc<\/span><span style=\"font-weight: 400;\"> folder to configure it follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1) Press<\/span><span style=\"font-weight: 400;\"> Win + r<\/span><span style=\"font-weight: 400;\"> button and search for <\/span><span style=\"font-weight: 400;\">notepad<\/span><span style=\"font-weight: 400;\"> and should be open with run as administrator<\/span><\/p>\n<p><span style=\"font-weight: 400;\">the other entry will not get saved .<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2) Click on File and select the open option, after that goes inside the above-specified folder.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3) Select All files and now select the hosts file.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4) After file is open give entry in the last block i.e. localhost name resolution:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">IP_Address<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">Hostname<\/span><\/p>\n<p><b>\u00a0<\/b><span style=\"font-weight: 400;\">For example:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">#<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">111.222.111.222<\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0 <\/span><span style=\"font-weight: 400;\">www.yourdomain.com<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<p><span style=\"font-weight: 400;\">5) Now save the file with the <\/span><span style=\"font-weight: 400;\">ctrl + s<\/span><span style=\"font-weight: 400;\"> button.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">image<\/span><\/p>\n<h3><b>To modify your HOSTS file in Mac os<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">In Mac os\u00a0 HOSTS file is found under the following path i.e<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/private\/etc\/hosts<\/span><span style=\"font-weight: 400;\">, you can easily edit it with nano editor by follows the steps:<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\"> On your system, select <\/span><span style=\"font-weight: 400;\">Application &gt; Utilities &gt; Terminal<\/span><span style=\"font-weight: 400;\"> to open a terminal window.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Image<\/span><\/p>\n<ol start=\"2\">\n<li><span style=\"font-weight: 400;\"> Now open the HOSTS file by using the following command:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\"># <\/span><span style=\"font-weight: 400;\">sudo vi \/private\/etc\/hosts<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: use sudo if you don\u2019t have root privileges.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Image<\/span><\/p>\n<ol start=\"3\">\n<li><span style=\"font-weight: 400;\"> Now edit the hosts file.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Add your new mapping after the default mapping i.e. (12.0.0.1 &#8211; localhost).<\/span><\/p>\n<ol start=\"4\">\n<li><span style=\"font-weight: 400;\"> To save and exits the HOSTS file, press <\/span><span style=\"font-weight: 400;\">:wq<\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Image<\/span><\/p>\n<ol start=\"5\">\n<li><span style=\"font-weight: 400;\"> Now ping with the same domain name to check the connection is established or not.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Image<\/span><\/p>\n<p style=\"font-weight: 200;\"><b>CONCLUSION- <\/b><span style=\"font-weight: 400;\">The above configuration shows how you can troubleshoot and publish websites for testing purposes by modifying the HOSTS file.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? &#8211;&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4847,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[90,59,62,66],"tags":[220,221,222,223,224],"class_list":["post-4147","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-beginner","category-general","category-how-to","category-technology","tag-host-file","tag-modify-the-hosts-file-in-different-operating-system","tag-modify-your-host-file-in-windows-10","tag-modify-your-hosts-file-in-linux","tag-modify-your-hosts-file-in-mac-os"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? --&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tanuj Chugh\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"CloudMinister -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister\" \/>\n\t\t<meta property=\"og:description\" content=\"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? --&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-23T05:52:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-23T05:52:07+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister\" \/>\n\t\t<meta name=\"twitter:description\" content=\"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? --&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#blogposting\",\"name\":\"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister\",\"headline\":\"What is a HOSTS file and How do you modify the HOSTS file in different operating system?\",\"author\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/HOSTS-file-and-How-do-you-modify-the-HOSTS-file-in-different-operating-system-1.jpg\",\"width\":2240,\"height\":1260,\"caption\":\"HOSTS file, Linux and Windows, Operating system, To modify your HOSTS file in Linux, To modify your HOSTS file in Windows 10, To modify your HOSTS file in Mac OS\"},\"datePublished\":\"2020-05-23T05:52:07+00:00\",\"dateModified\":\"2020-05-23T05:52:07+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#webpage\"},\"articleSection\":\"Beginner, General, How tos, Linux, host file, modify the HOSTS file in different operating system, modify your host file in Windows 10, modify your hosts file in linux, modify your hosts file in Mac os\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#listItem\",\"name\":\"What is a HOSTS file and How do you modify the HOSTS file in different operating system?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#listItem\",\"position\":3,\"name\":\"What is a HOSTS file and How do you modify the HOSTS file in different operating system?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/category\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\",\"name\":\"CloudMinister\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/\",\"name\":\"Tanuj Chugh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3395bcaf63eb5840dd73f67c7cb69ffd3dfe33336c1bdb1f1b9aeabe5b05e15a?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tanuj Chugh\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#webpage\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/\",\"name\":\"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister\",\"description\":\"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? -->HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/author\\\/tanuj-chugh\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/HOSTS-file-and-How-do-you-modify-the-HOSTS-file-in-different-operating-system-1.jpg\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#mainImage\",\"width\":2240,\"height\":1260,\"caption\":\"HOSTS file, Linux and Windows, Operating system, To modify your HOSTS file in Linux, To modify your HOSTS file in Windows 10, To modify your HOSTS file in Mac OS\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/modify-the-hosts-file-in-different-os\\\/#mainImage\"},\"datePublished\":\"2020-05-23T05:52:07+00:00\",\"dateModified\":\"2020-05-23T05:52:07+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/\",\"name\":\"CloudMinister\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/cloudminister.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister","description":"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? -->HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually","canonical_url":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#blogposting","name":"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister","headline":"What is a HOSTS file and How do you modify the HOSTS file in different operating system?","author":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"publisher":{"@id":"https:\/\/cloudminister.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/cloudminister.com\/blog\/wp-content\/uploads\/2020\/05\/HOSTS-file-and-How-do-you-modify-the-HOSTS-file-in-different-operating-system-1.jpg","width":2240,"height":1260,"caption":"HOSTS file, Linux and Windows, Operating system, To modify your HOSTS file in Linux, To modify your HOSTS file in Windows 10, To modify your HOSTS file in Mac OS"},"datePublished":"2020-05-23T05:52:07+00:00","dateModified":"2020-05-23T05:52:07+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#webpage"},"isPartOf":{"@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#webpage"},"articleSection":"Beginner, General, How tos, Linux, host file, modify the HOSTS file in different operating system, modify your host file in Windows 10, modify your hosts file in linux, modify your hosts file in Mac os"},{"@type":"BreadcrumbList","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/cloudminister.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","position":2,"name":"General","item":"https:\/\/cloudminister.com\/blog\/category\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#listItem","name":"What is a HOSTS file and How do you modify the HOSTS file in different operating system?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#listItem","position":3,"name":"What is a HOSTS file and How do you modify the HOSTS file in different operating system?","previousItem":{"@type":"ListItem","@id":"https:\/\/cloudminister.com\/blog\/category\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/cloudminister.com\/blog\/#organization","name":"CloudMinister","url":"https:\/\/cloudminister.com\/blog\/"},{"@type":"Person","@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author","url":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/","name":"Tanuj Chugh","image":{"@type":"ImageObject","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/3395bcaf63eb5840dd73f67c7cb69ffd3dfe33336c1bdb1f1b9aeabe5b05e15a?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tanuj Chugh"}},{"@type":"WebPage","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#webpage","url":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/","name":"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister","description":"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? -->HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/cloudminister.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#breadcrumblist"},"author":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"creator":{"@id":"https:\/\/cloudminister.com\/blog\/author\/tanuj-chugh\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/cloudminister.com\/blog\/wp-content\/uploads\/2020\/05\/HOSTS-file-and-How-do-you-modify-the-HOSTS-file-in-different-operating-system-1.jpg","@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#mainImage","width":2240,"height":1260,"caption":"HOSTS file, Linux and Windows, Operating system, To modify your HOSTS file in Linux, To modify your HOSTS file in Windows 10, To modify your HOSTS file in Mac OS"},"primaryImageOfPage":{"@id":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/#mainImage"},"datePublished":"2020-05-23T05:52:07+00:00","dateModified":"2020-05-23T05:52:07+00:00"},{"@type":"WebSite","@id":"https:\/\/cloudminister.com\/blog\/#website","url":"https:\/\/cloudminister.com\/blog\/","name":"CloudMinister","inLanguage":"en-US","publisher":{"@id":"https:\/\/cloudminister.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"CloudMinister -","og:type":"article","og:title":"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister","og:description":"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? --&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually","og:url":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/","article:published_time":"2020-05-23T05:52:07+00:00","article:modified_time":"2020-05-23T05:52:07+00:00","twitter:card":"summary_large_image","twitter:title":"What is a HOSTS file and How do you modify the HOSTS file in different operating system? - CloudMinister","twitter:description":"What is a HOSTS file and How do you modify the HOSTS file in the different operating systems? --&gt;HOSTS File The HOSTS file is found inside an operating system, that helps to resolve hostname with an IP address before checking in DNS. In your system, you want to access www.yourdomain.com hostname your system first actually"},"aioseo_meta_data":{"post_id":"4147","title":null,"description":null,"keywords":null,"keyphrases":null,"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":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"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":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"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":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-05-21 07:22:48","updated":"2025-08-07 04:50:52","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudminister.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/cloudminister.com\/blog\/category\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhat is a HOSTS file and How do you modify the HOSTS file in different operating system?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/cloudminister.com\/blog\/"},{"label":"General","link":"https:\/\/cloudminister.com\/blog\/category\/general\/"},{"label":"What is a HOSTS file and How do you modify the HOSTS file in different operating system?","link":"https:\/\/cloudminister.com\/blog\/modify-the-hosts-file-in-different-os\/"}],"_links":{"self":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts\/4147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/comments?post=4147"}],"version-history":[{"count":0,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/posts\/4147\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/media\/4847"}],"wp:attachment":[{"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/media?parent=4147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/categories?post=4147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudminister.com\/blog\/wp-json\/wp\/v2\/tags?post=4147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}