New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Hosts Files?


Thread Closed

 
Thread Tools
vonedaddy
Guest
 
Posts: n/a

I am a long time windows user and I am new to the mac so please bare with me.

With my windows xp machine I used to have a HOSTS file where I can store DNS information locally and the browser would check there for DNS resolution before going to the DNS servers. Is that possible with a MAC?
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
It's at /etc/hosts

If the above confuses you, then do the following:
- Open the Terminal application (In the Utilities folder, inside the Applications folder of your hard disk)
- type
Code:
open /etc/hosts
and press Return
The Hosts file should open in a text editor.
PowerBookG4

 
PowerBookG4's Avatar
 
Member Since: Jan 08, 2005
Location: New Jersey
Posts: 6,190
PowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud of
Mac Specs: Mac Pro 8x3.0ghz 12gb ram 8800GT , MBP 2.16 2GB Ram 17 inch.

PowerBookG4 is offline
I am interested in what you are changing in this file, a description would be much apprieated so I can learn something.

My Website
Blog
I love my hosting company!
I was on the M-F honor roll for Febuary:2006
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
He maybe adding an entry to the file. An entry would look something like the following (ip address hosts name):

123.32.12.125 gandalf

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
Quote:
Originally Posted by PowerBookG4
I am interested in what you are changing in this file, a description would be much apprieated so I can learn something.
1. Shortcuts, like localhost.
2. Ad blocking. For example, redirect all request to ads.advertiser.com to 127.0.0.1, and web ads from that advertiser will disappear. (You can find lists of popular advertisers' servers, like Doubleclick's, on Google)
3. Filtering. Suppose your roommate shares your iMac. Suppose he likes porn. Suppose you don't want him browsing porn on your computer. Redirect all requests to www.hisfavoritepornosite.com to 127.0.0.1
PowerBookG4

 
PowerBookG4's Avatar
 
Member Since: Jan 08, 2005
Location: New Jersey
Posts: 6,190
PowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud ofPowerBookG4 has much to be proud of
Mac Specs: Mac Pro 8x3.0ghz 12gb ram 8800GT , MBP 2.16 2GB Ram 17 inch.

PowerBookG4 is offline
that is prety cool, how did you do this on the pc, because I would like to do that on my pc as well.

My Website
Blog
I love my hosting company!
I was on the M-F honor roll for Febuary:2006
egandolfi

 
Member Since: Jan 19, 2007
Location: Pennsylvania
Posts: 130
egandolfi will become famous soon enough
Mac Specs: MacBook Pro-2.16Ghz Intel Core 2 Duo-3GB RAM-120GB HDD

egandolfi is offline
PowerbookG4,
The host file on a pc is located at cwindows\system32\drivers\etc\

The file name is hosts (no file extension). If you use notepad to edit, make sure when you save you save it as "hosts" including the quotes otherwise it will ad a .txt extension and won't work.

Thread Closed


« Convince me to go Mac | iPicture/iDVD »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
List view vs. Icon view - can't see all files =^o.o^= Switcher Hangout 8 01-20-2007 06:39 PM
repair permissions a waste of time? Macman Schweb's Lounge 5 05-31-2005 06:26 PM
opening ISO/HFS hybrid files in mac listenmusiq OS X - Operating System 2 04-29-2005 03:26 PM
Help me with auto renaming files in Finder Strider OS X - Apps and Games 4 02-03-2005 10:33 AM
SOS: My iBook's Files and Personal Settings Missin tettyusa Apple Notebooks 1 07-21-2004 12:03 PM

All times are GMT -4. The time now is 03:48 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?