{"id":671,"date":"2022-02-16T16:30:14","date_gmt":"2022-02-16T21:30:14","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=671"},"modified":"2022-02-16T16:30:17","modified_gmt":"2022-02-16T21:30:17","slug":"how-to-modify-the-host-file","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/how-to-modify-the-host-file\/","title":{"rendered":"How to modify the host file"},"content":{"rendered":"\n<p>Your host file enables your system to override the DNS setting for a domain. This change only affects your system.<\/p>\n\n\n\n<p>The syntax of a host file entry is as follows<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># this is a comment\n192.168.22.22 molecularsciences.org<\/code><\/pre>\n\n\n\n<p>Basically you specify an IP followed by a domain. All lines beginning with # sign are comments.<\/p>\n\n\n\n<p>Host files should only be edited with plain text editors like notepad, notepad++, sublime, etc. Following are the locations of host files on different systems:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Operating System<\/th><th>Host file location<\/th><\/tr><\/thead><tbody><tr><td>Mac OS<\/td><td>\/etc\/hosts<\/td><\/tr><tr><td>Linux<\/td><td>\/etc\/hosts<\/td><\/tr><tr><td>Microsoft Windows<\/td><td>C:\\Windows\\System32\\Drivers\\etc\\hosts<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Your host file enables your system to override the DNS setting for a domain. This change only affects your system. The syntax of a host file entry is as follows Basically you specify an IP followed by a domain. All lines beginning with # sign are comments. Host files should only be edited with plain [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,32],"tags":[],"class_list":["post-671","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac-os"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/671\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}