You don’t own the file “hosts” and don’t have permission to write to it. Here is the error that I got, while trying to edit hosts file: I couldn’t find any option to unlock the Hosts file, and edit it using Mac Text Editor.
Hosts file from Wiki (Can be used to find location of Hosts file in different computer OS)Īt the time of writing this article, I’m using Mac 10.8.4, and whenever I try to edit the hosts file using Text editor, I see the Locked error.Anyways, I will not get into detailed explanation of DNS and Hosts file, but if you are interested to learn these basics (you should), here are few articles for your reference: address for domain in your OS Hosts file, when ever someone will type in the browser URL, will be open in the browser. You can add custom detail in your Hosts file, and before checking DNS, your system will check operating system hosts file for any reference. Similarly, Hosts file is for your local computer. This also brought the concept of Public DNS, which I have already discussed in detailed earlier ( Using Google DNS to speed up The internet). address and thus serve website in your browser. For example, when you type in your browser URL, your internet connection queries DNS system of your I.S.P. The hosts file is one of the important network files of any operating system.