See More About: , , ,

How to Edit Hosts Files in Mac OS X Without the Headaches

by

Are you looking for an easy way to edit your Mac’s hosts file without having to enter a single command? If so, you may want to check out Gas Mask from Clockwise. Gas Mask is a free hosts file manager for Mac OS X that enables users to create multiple hosts files that can be switched with a click of a button. The hosts file editor also features a syntax highlighting feature which ensures that you enter the correct syntax when adding to the hosts file on your Mac.

The guide below will show you how I created another hosts file on my Mac and how I switch between the two files.

Software/Hardware used: Gas Mask 0.5 running on Mac OS 10.6.

Create and Edit a Hosts File

edit hosts file mac gas mac How to Edit Hosts Files in Mac OS X Without the Headaches

1. To create a new hosts file click the Create button.

Note: You will notice that in the LOCAL section you will find the hosts file from your Mac labeled as Original File.

edit hosts file mac gas mac a How to Edit Hosts Files in Mac OS X Without the Headaches

2. Name the new hosts file.

edit hosts file mac gas mac b How to Edit Hosts Files in Mac OS X Without the Headaches

3. Enter the information you wish to use in the hosts file. Use the # tag to enter comments in the hosts file as indicated in the example above. To make an entry in the hosts files enter the IP address followed by the domain you wish to point the IP address to.

In the example above I am pointing test.gilsmethod.com to 169.123.23.2.

Switch Between Hosts Files

Once you have created other hosts files you will find that Gas Mask gives you two options to switch between multiple hosts files.

edit hosts file mac gas mac c How to Edit Hosts Files in Mac OS X Without the Headaches

1. To switch between hosts files, click the host file you wish to use.

2. Click Activate.

edit hosts file mac gas mac d How to Edit Hosts Files in Mac OS X Without the Headaches

3. If Gas Mask is minimize/closed, click the Gas Mask icon on the Menu bar to open the list of available hosts files.

4. Click on the hosts file you wish to activate.

If you have any comments or questions please use the comments form below.

Download a free copy of Gas Mask from Clockwise.

See More About: , , ,
Originally posted Mar 23, 2011

We close comments after 30 days on GilsMethod.com and ask that you post questions and issues on our Answers website.

This helps us better serve you by allowing us to keep track of unanswered questions that are usually hidden in long comment threads.

Answers.GilsMethod.com is a community-powered support website where you will be able to post questions, and other users including us will respond with expert advice.

So if you are having trouble with your PC, Mac, iPad, iPhone, or other piece of technology, head over to Answers.GilsMethod.com and ask away.