{"id":934,"date":"2016-09-28T19:11:35","date_gmt":"2016-09-28T13:41:35","guid":{"rendered":"https:\/\/www.ibeehosting.com\/blog\/?p=934"},"modified":"2017-02-28T19:12:08","modified_gmt":"2017-02-28T13:42:08","slug":"guidebook-edit-host-file","status":"publish","type":"post","link":"https:\/\/www.ibeehosting.com\/blog\/guidebook-edit-host-file.html","title":{"rendered":"GuideBook : How to edit your Host file"},"content":{"rendered":"<p>Seldom due to attack or mishap there arise the need to modify the host file. Thus, to freely control and access websites and network traffic host files requires modification<\/p>\n<p>Host files are needed to resolve host name before DNS, on that particular machine. These are the large massive documents to aid the network name resolution. Modifying your host files causes your local machine to look directly at the IP address specified.<\/p>\n<p><strong>How to add host entry in file<\/strong><\/p>\n<p>To modify the host file, you add two entries to the file that contains the IP address that you want the site to resolve to and the address. Adding the following two lines, for example, point www.domain.com and domain.com to our current server.<br \/>\n103.24.202.13 www.domain.com<br \/>\n103.24.202.13 domain.com<\/p>\n<p>The preceding section will highlight the how to locate and modify the host file.<\/p>\n<ul>\n<li>Windows 10, Windows 8, Windows 7, and Windows Vista<\/li>\n<li>Linux<\/li>\n<li>Mac OS X 10.0 through 10.1.5<\/li>\n<li>Mac OS X 10.6 through 10.11<\/li>\n<\/ul>\n<p><strong>Windows\u00a0<\/strong><\/p>\n<p>Since Windows 10, Windows 8, Windows 7, and Windows Vista use User Account Control (UAC), so Notepad must be run as Administrator.<\/p>\n<p><strong>For Windows 10 and 8<\/strong><\/p>\n<ol>\n<li>Press Windows key.<\/li>\n<li>Search for Notepad in the search field.<\/li>\n<li>As a search result, right-click Notepad and select Run as administrator.<\/li>\n<li>Open the following file: c:\\Windows\\System32\\Drivers\\etc\\hosts through Notepad.<\/li>\n<li>Make the necessary changes.<\/li>\n<li>Save the file by clicking on File and then selecting Save.<\/li>\n<\/ol>\n<p><strong>For Windows 7 and Vista<\/strong><\/p>\n<ol>\n<li>Click Start &gt; All Programs &gt; Accessories.<\/li>\n<li>Select Notepad to run as an administrator by right-clicking on Notepad.<\/li>\n<li>Click continue the Windows needs your permission UAC window.<\/li>\n<li>When Notepad opens, click File &gt; Open.<\/li>\n<li>In the File name field, type C:\\Windows\\System32\\Drivers\\etc\\hosts.<\/li>\n<li>Click Open.<\/li>\n<li>Make the necessary changes.<\/li>\n<li>Save the file by clicking on File and then selecting Save.<\/li>\n<\/ol>\n<p><strong>Linux<\/strong><\/p>\n<ol>\n<li>Open a terminal window.<\/li>\n<li>Open the hosts file in a text editor by typing the following line: Sudo nano \/etc\/hosts<\/li>\n<li>Enter your domain user password.<\/li>\n<li>Make the necessary changes to the file.<\/li>\n<li>Press Control-x.<\/li>\n<li>When prompted to save the changes Select y.<\/li>\n<\/ol>\n<p><strong>Mac OS X 10.0 through 10.11<\/strong><br \/>\nMac OS X 10.0 through 10.1.5<\/p>\n<ol>\n<li>Traverse -&gt;Applications-&gt;Utilities-&gt;NetInfo Manager.<\/li>\n<li>To grant access to edit NetInfo database, click the padlock in the lower-left corner of the window.<\/li>\n<li>Enter your domain user password and click OK.<\/li>\n<li>In the second column of the browser view, select the node named machines.<\/li>\n<li>The third column contains entries for -DHCP-, broadcasthost, and localhost.<\/li>\n<li>In the third column, select localhost.<\/li>\n<li>From the Edit menu, select Duplicate, It is the easiest way to create any new entry.<\/li>\n<li>An alert will appear asking for confirmation.<\/li>\n<li>Select Duplicate.<\/li>\n<li>A new entry called localhost copy appears, and its properties are shown below the browser view.<\/li>\n<li>Double-click the value of the ip_address property and enter the IP address of the other computer.<\/li>\n<li>Double-click the value of the name property and enter the hostname you want for the other computer.<\/li>\n<li>Click the serves property and select Delete from the Edit menu.<\/li>\n<li>From the File menu, select Save.<\/li>\n<li>A confirmation alert appears.<\/li>\n<li>Click Update this copy.<\/li>\n<li>Repeat steps 6 through 12 for each additional host entry that you want to add.<\/li>\n<li>From the NetInfo Manager menu, select Quit.<\/li>\n<li>You do not need to restart the computer.<\/li>\n<\/ol>\n<p><strong>Mac OS X 10.6 through 10.11<\/strong><\/p>\n<ol>\n<li>Traverse the path Applications -&gt; Utilities-&gt; Terminal.<\/li>\n<li>Open the hosts file by typing the following line in the terminal window: sudo nano \/private\/etc\/hosts<\/li>\n<li>Type your domain user password when prompted.<\/li>\n<li>Edit the hosts file.<\/li>\n<li>The file contains some comments (lines starting with the # symbol), and some default hostname mappings (for example, 127.0.0.1 \u2013 local host). Add your new mappings after the default mappings.<\/li>\n<li>Save the hosts file by pressing Control+x and answering y.<\/li>\n<li>Make your changes take effect by flushing the DNS cache with the following command: dscacheutil -flushcache<\/li>\n<\/ol>\n<p>The new changes shall now be reflected.<\/p>\n<p>Contact our support executive working for round the clock with immediate and proactive support services contact us at support@ibeehosting.com, 040-44254242.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seldom due to attack or mishap there arise the need to modify the host file. Thus, to freely control and access websites and network traffic host files requires modification Host files are needed to resolve host name before DNS, on that particular machine. These are the large massive documents to aid the network name resolution. [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[457],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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.ibeehosting.com\/blog\/guidebook-edit-host-file.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GuideBook : How to edit your Host file\" \/>\n<meta property=\"og:description\" content=\"Seldom due to attack or mishap there arise the need to modify the host file. Thus, to freely control and access websites and network traffic host files requires modification Host files are needed to resolve host name before DNS, on that particular machine. These are the large massive documents to aid the network name resolution. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ibeehosting.com\/blog\/guidebook-edit-host-file.html\" \/>\n<meta property=\"og:site_name\" content=\"The Real Dedicated Hosting Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ibeehosting\" \/>\n<meta property=\"article:published_time\" content=\"2016-09-28T13:41:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-02-28T13:42:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@ibeehosting\" \/>\n<meta name=\"twitter:site\" content=\"@ibeehosting\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.ibeehosting.com\/blog\/\",\"name\":\"The Real Dedicated Hosting Blog\",\"description\":\"Performance, Scalability and Engineering\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.ibeehosting.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/guidebook-edit-host-file.html#webpage\",\"url\":\"https:\/\/www.ibeehosting.com\/blog\/guidebook-edit-host-file.html\",\"name\":\"GuideBook : How to edit your Host file\",\"isPartOf\":{\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/#website\"},\"datePublished\":\"2016-09-28T13:41:35+00:00\",\"dateModified\":\"2017-02-28T13:42:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/#\/schema\/person\/0af122bb530f9537b3a567f42e3c7c14\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ibeehosting.com\/blog\/guidebook-edit-host-file.html\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/#\/schema\/person\/0af122bb530f9537b3a567f42e3c7c14\",\"name\":\"Goldy Sachan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.ibeehosting.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9c6bf29b0a360f7cfaa7ff46775ca3c0?s=96&d=mm&r=g\",\"caption\":\"Goldy Sachan\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/posts\/934"}],"collection":[{"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=934"}],"version-history":[{"count":0,"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/posts\/934\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ibeehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}