If nothing happens, download GitHub Desktop and try again. If nothing happens, download Xcode and try again. If nothing happens, download the GitHub extension for Visual Studio and try again. Gas Mask is simple hosts file manager for macOS. It allows editing of host files and switching between them. Download latest version 0.
Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up. Hosts file manager for OS X. Objective-C Branch: master New pull request.
Let's not ask why when we're just prying with no real help offered eh? How to edit the host file in mountain lion? Scroll down for the next article. I think that, what digital0ak is telling me is what happened with my Laptop and the Apple support person gave me the fix for my particular problem and all this time, I been thinking that the " Johnny Mar 10, at UTC. Are Safari and Firefox using a proxy?
Find File. Download ZIP.
https://vernpadiper.tk Sign in Sign up. A great idea for prank too. 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:. Here is the error that I got, while trying to edit hosts file:.
And it will ask your system password once you enter the password, you will see a screen like this:. Nano is the terminal editor, and if you wish to learn all the commands of this editor, here is a handy reference. Now, use your cursor to move, and edit the hosts file according to your requirement. Once you are done making changes, click on.
Update: You can download this Mac app call Gasmasks to edit hosts file quickly. It took me 15 minutes to find the solution to locked hosts file issue in Mac, and I hope this article will save your precious time. Search Advanced….
Nov 7, 37 Apple Manor. Very interesting.
The first command doesn't work for me either but the second does. However i have no problems at all unlocking Hosts. You could try repairing Disk Permissions in Disk Utility. Still cannot unlock the hosts file. EDIT: Got it!
I had to use: Code:. Last edited: Jul 3, Jul 11, I had a lot issues getting changes to the hosts file to be recognized on two separate machines, even after flushing the DNS cache using: sudo dscacheutil -flushcache. The only thing I can guess after finally getting this to work is that it has something to do with Lion's file versions and locking the file. Until I noticed the file was 'Locked' automatically by the OS none of my changes were being recognized.
Has anyone else had these issues? Jun 18, 1, 74 New Zealand.
Launch Terminal, found in /Applications/Utilities/ or launched through Spotlight; Type the following command at the prompt: sudo nano. By editing Mac hosts file, it's possible to emulate DNS change and set the desired IP for a domain name. With the OS X Mavericks, Mountain Lion, and Lion.
Thanks a lot. It works for me, I can unlock the "host file".
This is the easiest way to edit.