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
OS X - Operating System General OS operation information and support

What is the OS X equal to Windows HOSTS file?


Post Reply New Thread Subscribe

 
Thread Tools
mynameis

 
Member Since: Sep 30, 2004
Posts: 3,378
mynameis is just really nicemynameis is just really nicemynameis is just really nicemynameis is just really nice

mynameis is offline
For those that don't know about the Window HOSTS file, it allows you to set the IP address that goes with a host name. For example the IP address for the host name mac-forums.com is 69.20.37.125. So if you didn't want your computer to be able to access mac-forums you could redirect that host name to go to some other IP, like 0.0.0.0 which would lead it no where. Anyone know how to do that in OS X?
QUOTE Thanks
meltbanana314
Guest
 
Posts: n/a

/etc/hosts, maybe?
QUOTE Thanks
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
Like meltbanana314 suggested you would find it in /etc. but I think in OS X it is located in /private/etc.

Run the terminal application and execute the following line:

sudo find / -name hosts -exec ls -l {} \;

The above should give you the full path (location) of the host file.

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

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
Yeah it's found in /etc/hosts or /private/etc/hosts they both point to the same file.
QUOTE Thanks

Post Reply New Thread Subscribe


« Panther Help? | movie downloads »
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
Burn .dmg file to CD on Windows, use on Mac hollerz1 Running Windows (or anything else) on your Mac 4 01-28-2010 03:22 PM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM
file sharing with windows carlos8126 OS X - Operating System 0 10-19-2004 11:18 PM
Windows 2003 File Sharing darvay1 OS X - Operating System 0 09-08-2004 09:43 AM
Delay file access from windows PC Mac2Serve Other Hardware and Peripherals 0 08-12-2004 09:31 PM

All times are GMT -4. The time now is 10:47 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?