The hosts file which is already available on your computer is basically used to lookup or resolve domain names to an IP address. It is a small text document that helps to map host names to a specified IP address. The hosts file also lets you to block access to a site by pointing to an unused or internal IP address. In this tutorial, we will learn how to edit the hosts file on a Mac computer.
Do you want to edit the hosts file on a Mac? In this article, you will find out how to edit the hosts file in Mac operating system. The changes made in the hosts file have priority over the DNS pointers, and therefore they are exactly right for us because they simulate a different pointing only on the computer on which they are performed, while all the others will continue to normally view the site hosted by the old one.
For Mac OSX systems it is possible to change the pointing of a domain to an IP address of our choice, different from the real one, and this allows us to do all the installations and tests on a specific already existing domain. Editing the hosts file on Mac OS X 10.2 and later is very simple, but needs to be done via the terminal. Follow the steps given below to edit the hosts file in Mac:
That is everything you need to know about how to edit hosts file on a Mac computer. While you are here, do not forget to check out our other Mac Guides on how to reduce PDF file size on Mac, and how to enable cookies on Safari in Mac.
In this guide, we'll explore the cost of skins in CS2, what determines their prices,…
The history of the UK is interconnected with the tale of bookmaking, reflecting the rich…
What are Arrowhead Game Studios plan to release Helldivers 2 on Xbox? Here are some…
Here is the formula on how to find Median of a dataset in Microsoft Excel.
Here's the list of all the FF7 Rebirth trophies including the Platinum trophy.
Here's how to redeem all the demo rewards and bonuses in Final Fantasy 7 Rebirth.