Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

restore orginal host file

i changed my hostfile and now i cant seem to access itunes properly. How do i restore my host file?

MacBook Pro, Mac OS X (10.6.8)

Posted on Sep 1, 2011 11:40 PM

Reply
3 replies

Sep 2, 2011 12:56 AM in response to linhfromtoronto

Use the free Text Wrangler to Open File by Name:


/private/etc/hosts



http://www.barebones.com/products/textwrangler/




Select below and copy, select all in your /private/etc/hosts and paste, save with the admin password. Reboot.


Next time, make a copy of the file before messing with it.



##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1 localhost

255.255.255.255 broadcasthost

::1 localhost

fe80::1%lo0 localhost


Extra note:


If your attempting to block domains using the hosts file, you need to keep the new entries BELOW what you see above and use 0.0.0.0 instead of 127.0.0.1 like what is used on Windows (127.0.0.1 causes issues in OS X)


so for instance to block Facebook.com


0.0.0.0 www.facebook.com


# symbol "comments out" a line, tellling the computer to ignore this line

restore orginal host file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.