Sie sind auf Seite 1von 48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Decoding the Web


Tech news, Web apps and Coding bits
Feeds: Posts Comments

How to edit the hosts file in Mac OS X Leopard


April 6, 2009 by decoding Introduction The hosts file (http://en.wikipedia.org/wiki/Hosts_file) is a text file that maps hostnames to IP addresses. Upon typing a url address on the browser, the system is checking if there is a relevant entry on the hosts file and gets the corresponding IP address, else it resolves the IP via the active connections DNS servers. The hosts file can be edited to block certain hostnames (like ad-serving/malicious hosts), or used for web development purposes, i.e. to redirect domains to local addresses. Editing the hosts file Editing the hosts file in Mac OS X Leopard, is a pretty easy task, especially if you are familiar with the terminal. Step 1 Open the Terminal.app Either by start typing Terminal on the Spotlight, or by going into Applications -> Utilities -> Terminal. Step 2 Open the hosts file Open the hosts by typing on the Terminal that you have just opened: 1 $s u d on a n o/ p r i v a t e / e t c / h o s t s

Type your user password when prompted. Step 3 Edit the hosts file The hosts file contains some comments (lines starting with the # symbol), as well as some default

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

1/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

The hosts file contains some comments (lines starting with the # symbol), as well as some default hostname mappings (e.g. 127.0.0.1 localhost). Simply append your new mappings underneath the default ones. Or edit one of the default values if you know what you are doing! You can navigate the file using the arrow keys. Step 4 Save the hosts file When done editing the hosts file, press control-o to save the file. Press enter on the filename prompt, and control-x to exit the editor. Step 5 Flush the DNS cache On Leopard you can issue a simple Terminal command to flush the DNS cache, and have your host file changes to take immediate effect: 1 $d s c a c h e u t i lf l u s h c a c h e

You can now test your new mapping on the browser! Posted in Apple, Mac OS X, Software, Tips | Tagged About hosts, these Leopard ads (http://en.wordpress.com/about| 267 Comments these-ads/)

267 Responses
I AM OSX How to edit the hosts file in Mac OS X on April 6, 2009 at 22:51 | Reply Leopard Decoding the Web [...] See the original post here: How to edit the hosts file in Mac OS X Leopard Decoding the Web [...] Ben ## # 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 on August 9, 2010 at 8:02 | Reply

[ Read 10 lines ] ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell i am here what do i do to get into photoshop
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 2/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

nitstorm on May 9, 2011 at 5:06 Dont follow Santas great commands, doing that will delete all of the files on your root filesystem. Ben i dont know what u meant when u asked what do i do to get into photoshop. Open photoshop to go into photoshop i guess?? :S You gotta press Ctrl+X to exit, then it prompts if you want to save your file or not (Y for yes and N for no) After saving or not saving you are returned back to your shell prompt. DO NOT FOLLOW SANTAS COMMANDS! THEY WILL TRY DELETING EVERYTHING ON YOUR ROOT FILESYSTEM!!!! ajuong Does this work on Lion? Joshua Yes, it does. on March 9, 2012 at 23:46 | Reply

on June 13, 2012 at 17:09

Rose on June 14, 2012 at 17:12 I lost all of the files on my root filesystem by mistake. my hosts file is empty, blank ;( Please help me!!! I am so desperate!!!! Erica Thanks, this was a great help! Anon This doesnt work on the latest mac OS 10.5.7 Elodin Anonymousmonser i know you hay its Elodin decoding @Anon: on June 8, 2009 at 20:46 | Reply on June 4, 2009 at 0:53 | Reply

on June 8, 2009 at 20:30 | Reply

on April 4, 2012 at 9:21 | Reply

What exactly are you trying which doesnt work? Cause it seems to be working just fine here. rongomes
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on June 23, 2009 at 11:13 | Reply


3/48

Why does it tell me permission denied? I am the only one who uses it and I am the

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Why does it tell me permission denied? I am the only one who uses it and I am the administrator. decoding on June 23, 2009 at 11:19 | Reply Make sure you type sudo nano /private/etc/hosts, so that it will prompt you for your administrator password. Iris on July 3, 2009 at 18:14 | Reply Ive tried is and I get as far as the password bit, but no host file comes up. I dont have a password, so I just press enter, and it just goes to another command line. decoding on July 7, 2009 at 12:57 | Reply The sudo Terminal command requires a non-blank admin password. Therefore you will have to set a password for your account, edit the hosts file, and then remove it if you wish. Although it is always recommended to have a password set. Scott on January 16, 2010 at 9:54 | Reply If you see a blank file, then you have the path incorrect, or there is no hosts file. Make sure you type it exactly as: sudo nano -w /etc/hosts You can list the directory and see if it is in there with: ls -la /etc Look for the file named hosts, if it is not there, you have other issues, as your machine more or less needs it to work properly. The hosts file is a fundamental to certain code routing aspects of your operating systems network. Also keep in mind, you can completely stop using /etc/hosts and use dscl to manage your hosts, which seems to be how Apple is moving forward in this regard. `man dscl` for more info. To add a host with dscl, and skip /etc/hosts the syntax is pretty easy. This would create foobar.local and point it to 127.0.0.1 sudo dscl localhost -create /Local/Default/Hosts/foobar.local IPAddress 127.0.0.1 You can then flush the cache to have it take effect: sudo dscacheutil -flushcache And in case you were wondering what is in that cache, just to make sure it was cleared, or if you are having trouble, you can list the cache: sudo dscacheutil -cachedump -entries Host
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 4/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

You can delete much the same: sudo dscl localhost -delete /Local/Default/Hosts/foobar.local And of course, if you want to list your entries: dscl localhost -list /Local/Default/Hosts Reid Sullivan on August 12, 2010 at 0:08 This will not work for this particular application, as the -create modifier requires a *.local only resource locator. Seven on March 13, 2011 at 2:56 | Reply I know this is an old post but for people who are reading today On Mac OS X Any version, Always have a password on your account Admin accounts should Always have one. If you are not an admin on your account, you can make a new one if you own the Mac. If your parents or whoever owns the Mac has set your account up without admin rights, this might be for a reason It also might mean they didnt know how to set your account up with admin rights You should ask the owner or parent to give your account admin rights. Usually when someone doesnt have a password for there account, that means they are not an Administrator. Sometimes its for a good reason. Other times, the admin shouldnt have admin rights hehe website browser wordpress domain links on July 10, 2009 at 21:10 | Reply [...] http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm [...] lars Thanks this was very helpful. on July 29, 2009 at 23:35 | Reply

RBD2 on August 31, 2009 at 20:12 | Reply All the answers to this, all over the web, seem a lot harder than they have to be? Under the GO menu in Finder, select GOTO Folder Type /etc Find the hosts file by name Double click on it and it will open in text edit. Edit and Save? macsrwank on October 20, 2009 at 20:08 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

5/48 hosts arent even stored in a text file on the mac. you have to edit the hosts database, you can

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

hosts arent even stored in a text file on the mac. you have to edit the hosts database, you can export the db entries to a text file and write it back to the db but this method is much easier. Ben Poole Wrong. on January 11, 2010 at 22:26

MM on October 29, 2011 at 14:14 I hate when people are writing stupid things. Get your information straight friend. Scott on January 16, 2010 at 9:58 | Reply All the answers to this, all over the web, seem a lot harder than they have to be? Under the GO menu in Finder, select GOTO Folder Type /etc Find the hosts file by name Double click on it and it will open in text edit. Edit and Save? That will not work because you will not be able to save, since you do not have permissions to save. You would have to first get info on the file, change the permissions to allow yourself read/write, and then change them back. xavier des on February 25, 2010 at 21:38 I completly agree with Scott and found the solution. (I think go in the terminal is difficult for most of us) - Under the GO menu in Finder, select GOTO Folder - Type /etc - Find the hosts file by name - COPY THE hosts FILE IN ANOTHER FOLDER !!! - EDIT THE NEWS FILE enter A new ligne as: 80.74.104.231 me.ch http://www.me.ch - SAVE IT - PUT THE NEW FILE IN /etc - youll be asked to authentify with your admin password - its finished (and edit this new file next time will be again forbidden, you will have again to copy it). For my french friends, this was: Comment changer le host sur un Mac OS 10.6 Thanks for the Help @RBD2 on September 9, 2009 at 8:12 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

Permissions dont allow this, at least not by default. Even right-clicking and changing the

6/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Permissions dont allow this, at least not by default. Even right-clicking and changing the permissions in the Finder wont give you access to modify hosts. Thats why this post exists. This was very helpful, glad I found it quickly. Thanks! Rp Thank you very much for this tip: Saved my day Just switched to Mac shabooty thanks for the tutorial =) R13 Thanks for the tutorial! on September 15, 2009 at 13:10 | Reply on September 11, 2009 at 23:20 | Reply

on September 15, 2009 at 21:05 | Reply

Entered this in Terminal on a Macbook with OS X 10.5.8 and got the response -bash: $: command not found Do you have any advice for what is wrong? Thank you! decoding on September 15, 2009 at 21:16 | Reply Please do not paste the $ character! Start from the sudo R13 That worked. Thanks! Anaxamaxan Great. It had been so long, Id forgotten how to do this! Works fine in Snow Leopard 10.6.1. In case anyone else, like me, is using MAMP, youll need to add a virtual host container to your httpd-vhosts.conf or httpd.conf file, matching the new host entry. For example, if I have in my hosts file: 127.0.0.1 site1.com Ill need something like this in my apache httpd-vhosts.conf: on September 21, 2009 at 9:50

on September 16, 2009 at 22:43 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

DocumentRoot /Users/username/Sites/site1/www

7/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

DocumentRoot /Users/username/Sites/site1/www ServerName site1.com ServerAlias site1.com *.site1.com TucsonTom on September 21, 2009 at 21:00 | Reply Is it possible for someone to upload a file with the actual content before and after editing? Heres what I see in terminal after entering the sudo nano etc. line ## # 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 Where do I go from here? decoding on September 21, 2009 at 21:08 | Reply From nano you can directly type text, or copy/paste, and save it at the end via control-o. flyingFrogs on September 21, 2009 at 21:34 | Reply In a discussion about excluding Omniture via hosts file the following were listed as probable suspects: 127.0.0.1 omnituretrack.local.com 127.0.0.1 analytic.spamfighter.com #[Omniture] 127.0.0.1 cdn11.sphere.com #[Omniture] 127.0.0.1 http://www.sphere.com #[SphereOmniture] 127.0.0.1 omniture.secure.miisolutions.net 127.0.0.1 html.knbc.com #[Omniture] 127.0.0.1 html.nbc10.com #[Omniture] 127.0.0.1 html.wnbc.com #[Omniture] # [Omniture][Wildcard DNS] 127.0.0.1 omniture.112.2o7.net #[McAfee.Cookie-Omniture] 127.0.0.1 omniturecom.112.2o7.net 127.0.0.1 omniturebanners.112.2o7.net 127.0.0.1 stats.esomniture.com #[SpySweeper.Spy.Cookie] 127.0.0.1 http://www.omniture.com # [Omniture via Misc Sites] 127.0.0.1 omniture.chip.de # [Omniture via Offermatica] # [Omniture via WebSideStory]
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 8/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

. Can the above simply be pasted, *as is*, into the hosts file? In particular, the # and [brackets] is this acceptable syntax? decoding on September 22, 2009 at 7:12 | Reply Yeap, it can be pasted. The lines starting with # are comments, they are ignored by the system. sebi_net works fine , thanks on September 28, 2009 at 21:31 | Reply

Mark on October 2, 2009 at 9:44 | Reply Text Wrangler (free) from Bare Bones Software will edit the /etc/hosts file with admin privileges no sweat. Use the Open File by Name under the File menu. Also its advised to use 0.0.0.0(nothing) instead of 127.0.0.1 (your computer) when blocking your computer from a website. Using 127.0.0.1 has caused issues of listens on TCP ports from hostile sites due to a OS X bug. (Leopard, I dont know yet about Snow Leopard) Also if you want the best host blocking list on the internet look here for the link. http://www.mvps.org/winhelp2002/hosts.htm Heres the list, its updated every few weeks or so. http://www.mvps.org/winhelp2002/hosts.txt So for OS X, one has to replace all the 127.0.0.1s to 0.0.0.0s in list. (NOT 127.0.0.1 local host leave this as is) After copying the list and Find and Replace the 127.0.01s to 0.0.0.0s, then paste to the bottom of the file: /etc/hosts. Save it with your admin password. You might have to reboot. Works great, especially for those annoying Vibrant Media intellitext ads that popup with a mouse over. Replace the addition every two weeks or so with the updated version from the same site. Ive been surfing a much happier person. Ciril on October 3, 2009 at 19:42 | Reply Can anybody help me to edit the terminal commands I wanna know how to enter my pass word here After this command it prompt me to type the admin password but I can`t type the password there is no cursor point So if I have to type as command please tell me
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 9/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts Thanks in advance Ciril decoding on October 3, 2009 at 21:57 | Reply Simply go ahead and type your password, it is not shown for security reasons, typing works! Gas Mask: Simple Hosts File Manager for OS X Blue on October 6, 2009 at 0:12 | Reply Ember Design: Web Design, Development, and Online Marketing for the San Francisco & East Bay Area [...] (or even completely swap out) the hosts file on Mac OS X Leopard. While it is possible to do this through the terminal, there is a great little tool from Clockwise that fits the bill just right called Gas [...] markretzloff on October 27, 2009 at 1:37 | Reply Thank you! Thank you! Thank you! Got it to work straight away. The terminal makes me nervous is there a slick GUI application that can manage changes like this perhaps one where I could toggle the changes on and off? Scott on January 16, 2010 at 10:05 | Reply Thank you! Thank you! Thank you! Got it to work straight away. The terminal makes me nervous is there a slick GUI application that can manage changes like this perhaps one where I could toggle the changes on and off? I do not think you will find a GUI for editing this. In the end, it is just a text file. You may want to look at a basic text editor, something like TextMate, which is paid for, or TextWranger, which is free. Both will allow you to edit any file, and if your permissions are not high enough, it will prompt you for your admin password, and then save the file. The hosts file is nothing more than a spreadsheet with two columns, and as many rows as you want. Column 1 is the IP address, column 2 is the hostname. You can use a space or a tab to delineate the columns. Many years ago, before DNS was invented, before BIND/named was even a thought, there was a large hosts file people would share in order to manage getting to the hosts they wanted to. Eventually, this fell apart, which leaves us where we are today, with DNS servers. The hosts file is a bare bones DNS server. One thing it does not support which would be nice, is wildcards, so you can not do something like: 127.0.0.1 *.example.com
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 10/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

and have it resolve foo.example.com, bar.example.com and others. You have to enter in each host, which for some development of certain sites, is going to mean you end up needing to enable named to get your development site to work. phil Hi on October 30, 2009 at 4:43 | Reply

I want to be able to install and access a local development website. so i modified the file accordingly 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost 1.2.3.4 http://www.mywebsite.com 127.0.0.1 mywebsite.com I want to remove 1.2.3.4 http://www.mywebsite.com 127.0.0.1 mywebsite.com press ^S press ^X and it shows XOFF ignored, mumble mumble can you explain why? and more than anything remove 1.2.3.4 http://www.mywebsite.com 127.0.0.1 mywebsite.com many thanks decoding on October 30, 2009 at 11:02 | Reply Just use the arrow keys to navigate to the line you want to delete, and use the delete key. You can also put a # in front of the mapping/line, and it will be ignored. johnb on August 27, 2010 at 9:27 | Reply The mumble mumble message is produced because youre using ^s to save the changes, where you should be using ^o.

Pan Thanks a lot! It works msb


decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on November 11, 2009 at 23:53 | Reply

on November 16, 2009 at 8:49 | Reply


11/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Hi, i am working on editing the host file of my boss mac os x 10.5.8.. we followed the typing of the hosts file in the terminal app and it required password.. however, cursor not moving.. he keeps on typing but cursor not moving.. sorry not familiar with mac.. so hopefully you can help me.. thanks! decoding on November 16, 2009 at 9:32 | Reply As I said in a couple of comments above Simply go ahead and type your password, it is not shown for security reasons, typing works!. Press enter when you finish typing your password. liam excelllent, works in 5 mins, thankyou on November 22, 2009 at 1:56 | Reply

Nicholas Shanks on November 23, 2009 at 20:53 | Reply Since you seem so keen to reply to folks (great!), perhaps you can help me out too. I have the same problem that Jere Krischel has in this thread: http://discussions.apple.com/message.jspa?messageID=10430365#10430365 Which is namely that this works: 0.0.0.0 http://www.google.com But this doesnt: 2001:4860:a003::68 http://www.google.com Nor this: 2001:4860:a003::68%gif0 http://www.google.com Any ideas? I have tried all the other hostnames returned by an nslookup too (e.g. wwwtmmdi.l.google.com). My goal is to redirect Safaris search box to use ipv6.google.com by changing the address that http://www.google.com resolves to. BTW, IPv6 connectivity is fine and ipv6.google.com works in Safari using generic interface (gif) tunnelling: # dig -6 -x 2001:4860:a003::68 ; <> DiG 9.6.0-APPLE-P2 <> -6 -x 2001:4860:a003::68 ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2734 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 12, ADDITIONAL: 10 ;; ANSWER SECTION: 8.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.3.0.0.a.0.6.8.4.1.0.0.2.ip6.arpa. 86383IN PTR fx-inx68.1e100.net.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 12/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Adfest on December 2, 2009 at 23:00 | Reply Got all excited when I saw this, but I just keep running into snags on my journey to edit the host file. In the terminal, I type sudo nano /private/etc/hosts as instructed, but instead of getting the password request, I get: sudo: /etc/sudoers is mode 0664, should be 0440 Segmentation fault Being somewhat (who am I kidding? totally and helplessly) new to Mac, I am at a complete loss. Halp? Scott sudo: /etc/sudoers is mode 0664, should be 0440 Segmentation fault on January 16, 2010 at 10:11 | Reply

You have a permissions error with your sudoers file, which is an instruction file for who is allowed to use the sudo command. This is a hard one to solve, as you need sudo to fix the problem, but you are not allowed to. Are you sure you are in an admin account? If not, you may have to start in single user mode, reboot holding the S key, be careful, you are logged into the machine as root. It will be a black screen, white type, a really large terminal basically. Enter in: /bin/chmod 0440 /etc/sudoers I can not remember, but you may have to mount your volume first, there are instruction on the screen for doing so. Type reboot when you are done, and you should no longer see the error you see. Adfest Ah Never mind. Figured it out. on December 3, 2009 at 0:15 | Reply

For those of you who googled yourself here with the same issue like me, I fixed the sudoers mode thing with the Disk Utility. Highlight your startup volume and click repair disk permissions. Should take a couple minutes, but it fixes all the things you screwed up while trying to edit the host file. decoding on December 3, 2009 at 0:17 | Reply Thanks for the feedback and the solution! Its gonna be useful for other readers as well.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 13/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Thankyou on April 27, 2011 at 14:33 Just so you know, even 2 years on that little step helps me immensely! Kiwi on December 28, 2009 at 21:01 | Reply Thanks for the article. It worked perfectly and saved me a bunch of time. ler on January 2, 2010 at 13:49 | Reply how do i append my new mappings under default ones? what are new mappings? Doost on January 5, 2010 at 20:59 | Reply I have a really crazy problem! I just hot the newest MacBook Pro with Mac OS X 10.6.2 (the latest one). I do everything right and I can locate the hosts file in /private/etc/hosts. It is there, but its jut that the actual hosts file is an alias and when i click it to open it something says orignal hosts file cannot be found therefore the hosts cannot be opened. I even called Apple Customer Support and they wont help me open the hosts because its against the Term of Agreements. THey just tell me its suppose to be like that and it locked. But I googled and searched for anyone who has the same problem but I cant find anything. Basically my main question is: How do I open/ unlock my hosts file? Which is and alias, and when I try to open, it says original hosts file cannot be found PLEASE ANYONE HELP! I need the hosts file so I can edit it and get adobe for free CB on January 6, 2010 at 18:11 | Reply Huh. Running 10.6.2. Opened hosts file via Finder Menu Go->Go to File->/etc. Edited hosts file, saved and it told me simply The document hosts could not be saved. Anyone else seen this? CB Got it on January 6, 2010 at 18:18 | Reply

Its in the Private folder, so you have to copy to user folder (desktop for example), edit, save and then move back to /etc. Authenticate with your user password to replace. Scott on January 16, 2010 at 10:19 Its in the Private folder, so you have to copy to user folder (desktop for example), edit, save and then move back to /etc. Authenticate with your user password to replace.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 14/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Uhm, no, this is not correct. For those of you that are thinking there is a difference in the file located at: /etc/hosts and the one located at: /private/etc/hosts There is no difference, they are the same file. $ l sl a|g r e p/ e t c l r w x r x r x @ 1r o o t w h e e l As you can see, /etc is a link to /private/etc 1 1J a n 21 8 : 5 2e t c>p r i v a t e / e t c

$ m d 5/ e t c / h o s t s M D 5( / e t c / h o s t s )=3 d 8 a 7 1 2 a f 2 2 b 7 d 1 a 9 6 f 2 d b c e 8 6 6 7 4 5 f 7 $ m d 5/ p r i v a t e / e t c / h o s t s M D 5( / p r i v a t e / e t c / h o s t s )=3 d 8 a 7 1 2 a f 2 2 b 7 d 1 a 9 6 f 2 d b c e 8 6 6 7 4 5 f 7 You do not need to use /private/etc/hosts Just use sudo pico -w /etc/hosts or sudo nano -e /etc/hosts The -w tells it not to wrap, which can cause problems with line truncation. Even pico and nano are the same case, two seemingly different text editors, but one is just a link to the other. If you list the files in /usr/bin you can see that pico is: lrwxr-xr-x 1 root wheel 4 Jan 2 18:55 pico -> nano Which is a link, much like a Finder Alias, though not quite the same. Doost on January 8, 2010 at 8:53 | Reply Thanks CB, but when i copy it onto desktop its still an alias and it does the same exact thing as before when I click it CB Doost: on January 9, 2010 at 15:14 | Reply

How are you copying it to the desktop? I tried copy/paste, drang and drop, command + drag and drop and alt + drag and drop and it created a new file every time. You may have to select the file, command + I for get info, then at the bottom of that info window change the Sharing and Permissions settings all to read and write. Then copy to desk. Once you copy it back to /etc you can change the Staff and Everyone settings back to read only. Notice, where the highest of the three settings used to be called System it is now called by your user name. Hope that helps.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 15/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

R Crowe on January 15, 2010 at 18:42 | Reply I am moving a site to a new server (server 1) and testing it while the original site (server 2) is still live. My host file does get read and sends me to server 1, but only for about 2 minutes, after that it resolves to server 2. If I clear the browser cache and the DNS cache (dscacheutil -flushcache in Terminal), I can get back to server 1, again for about 2 minutes. (I would just give the site on server 1 a different url, but am working with a CMS that requires a domain name.) Anybody know why this is happening, or suggestions for a fix? Its a pain! Bri on January 28, 2010 at 19:07 | Reply Im having this exact same problem, except I cant even access my test site. Ive used traceroute to confirm the url is pointing to the desired IP, but still keep going to the live site. Any help would be much appreciated! Scott on January 28, 2010 at 22:10 Traceroute will lean on the real DNS bound website over the /etc/hosts file. So if you have amazon.com in your hosts file, do not expect traceroute to honor the hosts file. There may be a way to over ride that behavior with a flag to traceroute. If you are on windows, traceroute is sort of broken regardless. Bri. on January 29, 2010 at 5:24 Thanks Scott. Seems like I have an issue with our proxy or something else on our network. Funny I cant reply to your message. mabo thank you very much ! on January 27, 2010 at 6:35 | Reply

Veneno on February 5, 2010 at 15:16 | Reply When I do the sudo nano thing then enter the code I want. When I go to save it says the file is non-existent. Ravenswood ## # 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
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on February 15, 2010 at 1:19 | Reply

16/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

74.208.10.249 gs.apple.com This is what i have now on my hosts file but i still cannot contact the cydia server. itunes keep saying (The iPhone could not br restore. This device isnt eligible for requested build.) i have now tried 3 macs and followed every step but no luck. Any help would be great. Scott I do not get it either: on February 15, 2010 at 3:30 | Reply

Consider this test below: (Note, I have never found I needed to flushcache, though I have tried it to no help in this case) Added these three entries 74.208.10.249 gs.apple.com 74.208.10.249 example.com 74.208.10.249 example.apple.com In terminal.app, you can run the lookups $curl gs.apple.com $curl example.com $curl example.apple.com The first one, returns results that are an Apple server, the second two return the results of the Cydia server. You can test it in a browser as well: http://74.208.10.249/ As you can see, that is the rendered version of the above curl commands. You are getting the Cydia page in your browser. http://example.com/ Same thing as above, you get the Cydia server page http://example.apple.com/ And this shows that we can in fact control domains that are within the apple.com TLD (Top Level Domain). http://gs.apple.com/ This appears to be an Apple server, or at the very least, not the Cydia server you are after. It is hitting a server at 17.112.176.11, anything that starts with 17. is Apple, they are allocated the entire 17.0.0.0/8 Another good tool in this is just a simple ping of the new hostname, as it will show you the IP it is connecting to, and seems to consult the hosts file, whereas tools like dig do not, and curl is just doing what the browser does, and does not show you what happens behind the scenes. *This is obviously getting under my skin Adding this to the hosts file 127.0.0.1 gs.apple.com
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 17/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

$ping gs.apple.com 64 bytes from 127.0.0.1: icmp_seq=27 ttl=64 time=0.042 ms Ok, so that worked, it allowed me to change the IP it resolves to. Added back into the hosts file: 74.208.10.249 gs.apple.com $ping gs.apple.com PING gs.apple.com (74.208.10.249): 56 data bytes In that case, gs.apple.com is going to the Cydia server, but an http request via curl or a browser, and I do not get the correct site. Traceroute ends up at the correct location as well. If you enter in the data into /etc/hosts and do a $ping gs.apple.com in the terminal, and it returns a ping result with the address of 74.208.10.249, then you have edited the hosts file correctly. There is something deeper going on here, like certain apps consulting the hosts file, but ignoring alterations to it for specific hosts. I really do not believe Apple would break the functionality of the hosts file even for just one specific host, so there is simply something that is not understood entirely here. How to edit the hosts file in Mac IcyGo on February 15, 2010 at 9:03 | Reply [...] Source & Credit go to: http://decoding.wordpress.com [...] 3.0.1 OTB with ECID and SHSH from 3.1.2. what do I on February 15, 2010 at 9:21 | Reply do next - Hackint0sh [...] Try these 2 links, they helped me Caching Apple's Signature Server Jay Freeman (saurik) How to edit the hosts file in Mac OS X Leopard Decoding the Web with that you will be able to restore thru itunes to a 3.0 or 3.1 > whichever you have on file. [...] Dias Sadybekov on February 17, 2010 at 12:24 | Reply In my case I also had to remove web-proxy from Network configuration. In case web-proxy was present the DNS would not resolve to what was in the /etc/hosts file. Mac OS X Snow Leopard (cant lookup the exact version now) henk duivendrecht on February 23, 2010 at 13:44 | Reply It works but I still cant access my local web server by going to localhost. I have switched on web sharing and using the IP address from the web sharing dialog box doesnt work either. Sarah
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on February 26, 2010 at 16:55 | Reply


18/48

I did this just so I could block some sites but it doesnt work. I saved, cleared my cache,

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

I did this just so I could block some sites but it doesnt work. I saved, cleared my cache, tried it through terminal itself and through opening it through TextEdit but the sites still come up in my browser. Help? Frank Henderson Thanks. on March 1, 2010 at 13:14 | Reply

I open the terminal, edit the hosts but when I press command-X it doesnt save or do anything.I see the shortcuts at the bottom of the terminal window.I see that I need to press command-X but it doesnt work. How can I save the edited hosts file? decoding on March 1, 2010 at 13:28 | Reply Please read carefully step 4, control-o, control-x, not command. Frank Henderson on March 1, 2010 at 15:14 Thank you again, now it works. I am a pc to mac switcher and still confused with that command-ctrl buttons Mads Thanks at lot for the hint buddy! sam You are a king! Thank you so much. on March 3, 2010 at 14:58 | Reply

on March 4, 2010 at 3:30 | Reply

Forced 3.1.3 update backed out to 3.1.2 and fully restored after a blackrain hack of the os YES!!! ireallyneedinfo on May 5, 2010 at 5:32 | Reply Hi there, I references this article over at ireallyneedinfo.wordpress.com hope you dont mind. Regards Simon Apple Angst A Blog About Tech, Life and The World on May 5, 2010 at 5:34 | Reply [...] The solution is to make iTunes think it is talking to Apple when it is not. Saurik, the granddaddy of jailbreaking has an excellent guide to this HERE. I wont explain the process in detail as he does an excellent job. Less tech inclined Mac users take note, if you are having trouble finding your host file fear not! I have found a nifty guide for editing it HERE. [...]

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

19/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Legenden Hi, I use the 10.6.3 version and cant get it work. help ? tlmurray Starting from the typical initial example of Line 1: 127.0.0.1 localhost Line 2: 255.255.255.255 broadcasthost Line 3: ::1 localhost Line 4: fe80::1%lo0 localhost

on May 7, 2010 at 20:03 | Reply

on May 10, 2010 at 4:01 | Reply

where should new entries be located? Ive heard everything from it doesnt matter, they can even go after line 4 to specific pairs. Whats your take on this? decoding Yes, just start from the next blank line. Anonymous [...] [...] dhawan It did not work on May 10, 2010 at 8:36 | Reply

on May 12, 2010 at 11:33 | Reply

I am so disappointed

on May 16, 2010 at 19:57 | Reply

tlmurray on May 16, 2010 at 22:16 | Reply dhawan: What did not work? If youre talking about using the next blank line, it worked for me on some ping tests. I dont know if it was required but I did reboot after making the edit. A Blog About Tech, Life and The World Blog Archive on May 18, 2010 at 8:33 | Reply Apple Angst [...] The solution is to make iTunes think it is talking to Apple when it is not. Saurik, the granddaddy of jailbreaking has an excellent guide to this HERE. I wont explain the process in detail as he does an excellent job. Less tech inclined Mac users take note, if you are having trouble finding your host file fear not! I have found a nifty guide for editing it HERE. [...] Anthony Main Great article but Scotts comment certainly was the winner. on June 2, 2010 at 11:45 | Reply

I had a mapping which wasnt in the host file and needed to perform sudo dscl localhost -delete /Local/Default/Hosts in order to remove it. I have found it existed with this command
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 20/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

dscl localhost -list /Local/Default/Hosts twinmemo on June 7, 2010 at 9:25 | Reply hello, i have a problem whit the terminal, first i have a new macbook and i wanted to install de Adobe illustrator on it, the program was downloaded of a internet page, the instructions of how to install mentioned it somenthig of the terminal (1)Select trial serial and install (2)Quit CS5 if it opens after launch (3)Edit your Hosts file to block home calls in CS5: Open a Terminal and type: Code: sudo nano /private/etc/hosts Copy & Paste this lines: Code: 127.0.0.1 activate.adobe.com 127.0.0.1 practivate.adobe.com 127.0.0.1 ereg.adobe.com 127.0.0.1 activate.wip3.adobe.com 127.0.0.1 wip3.adobe.com 127.0.0.1 3dns-3.adobe.com 127.0.0.1 3dns-2.adobe.com 127.0.0.1 adobe-dns.adobe.com 127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com 127.0.0.1 ereg.wip3.adobe.com 127.0.0.1 activate-sea.adobe.com 127.0.0.1 wwis-dubc1-vip60.adobe.com 127.0.0.1 activate-sjc0.adobe.com 127.0.0.1 adobe.activate.com 127.0.0.1 hl2rcv.adobe.com 127.0.0.1 209.34.83.73:443 127.0.0.1 209.34.83.73:43 127.0.0.1 209.34.83.73 127.0.0.1 209.34.83.67:443 127.0.0.1 209.34.83.67:43 127.0.0.1 209.34.83.67 127.0.0.1 ood.opsource.net 127.0.0.1 CRL.VERISIGN.NET 127.0.0.1 199.7.52.190:80 127.0.0.1 199.7.52.190 127.0.0.1 adobeereg.com 127.0.0.1 OCSP.SPO1.VERISIGN.COM 127.0.0.1 199.7.54.72:80 127.0.0.1 199.7.54.72 Save with:
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 21/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Code: CONTROL + X An then type this to flush the DNS cache, and have your host file changes to take immediate effect: Code: dscacheutil -flushcache (4)Open CS5 and click on the help menu and select Deactivate (5) Select Deactivate Permanently then done. Quit CS5 (6) Reopen CS5 and enter the serial im trying to install it, but when i was put the sudo and inserts the password something appeard a window saying to me that i didnt understand very well and later on the terminal nothing appeard, when you open the terminal something like this appears: Last login: Sun Jun 6 14:37:02 on ttys000 macbook:~ wisbooh$ right? well when i i put the sudo and the other codes, and aceppt the extrage window..all erase it of the terminal and when close the terminal and open again nothing appears (last login and bla,bla,bla) something will have erased? i didnt know what i did because i dont speak english well so if you can understand me i need your help, if you can anwser in spanish crash on June 3, 2011 at 4:28 | Reply I added these to the file did the flush. I have the trial and I am getting invalid SN. Any suggestions? Ethical Person on October 19, 2011 at 21:25 Yes, I suggest buying a legal copy of CS 5 and not violating international copyright laws and end user license agreements. zeynep on June 10, 2010 at 19:19 | Reply Hi, I said what you didnt, but I cannot save the host file, it says you dont have permission to change this file, I remember doing something to change the permission, but cannot figure out how, can you helo me please? zuzu on June 14, 2010 at 2:26 | Reply Code: dscacheutil -flushcache (4)Open CS5 and click on the help menu and select Deactivate (5) Select Deactivate Permanently then done. Quit CS5
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 22/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

(6) Reopen CS5 and enter the serial well, there was no help menu in the cs5 install manager to deactivate homecalling. so i typed in my serial before i actually deactivated it. but now, everytime I start illustrator it asks me for my serial before I can start working. Sharon - Drupal Themer Thanks for the guide, very useful. on June 16, 2010 at 4:41 | Reply

joe on June 20, 2010 at 13:59 | Reply hi I did this while wanting to install an app but now i dont need it so have deleted the app please can you teach me how to reverse this? When I open terminal it doesnt come up with my usual computer name, its just blank. Jailbreaking your iPhone 3GS to iOS 4 with Pwnage Tool on June 23, 2010 at 23:29 | Reply 4.0 Just Another iPhone Blog [...] servers. This is where we take advantage of those SHSH blobs you stored with Cydia. I used this guide at Decoding the Web to help me find and edit the hosts file so that I could add this line to the [...] Sheridan Flynn Excellent! Thanks for this. Jacob Joe, on June 30, 2010 at 16:41 | Reply

on July 6, 2010 at 19:44 | Reply

Nothing in this article does anything that needs to be undone. The instructions here simply open the hosts file to allow you to make and save entries, then flush the DNS so that the system reads the new changes. They only changes that were made were whatever entries you made in the Hosts file. Whatever problem you are having with the terminal is unrelated to this article or changes made to the Hosts file. No changes were made to the terminal itself. The Hosts file is really just a text file. All you do is access the Hosts file and delete the entry you created. Also, its not a big deal to leave the entry in the hosts file until you get your problem straightened out. Its not hurting anything, and will only be a factor if you need it to legitimately connect to that server for that software. Twinmemo, Last login: Sun Jun 6 14:37:02 on ttys000 macbook:~ wisbooh$ Is exactly what you should be seeing when you open the terminal. Now just enter the sudo nano /private/etc/hosts as mentioned. Make your entry changes and save the file. Try using the control-o and enter to save before the control-x to exit . You may have said no to saving the changes.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 23/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

JeKo Really useful, tnx a lot

on July 13, 2010 at 16:12 | Reply

Par un ap iPhone 3Gs ar iOS 4.0.1!!! Mazs kumosi on July 27, 2010 at 17:35 | Reply [...] MAC /private/etc/hosts skk k redit uz Leoparda vai Snow Leoparda aprakstts eit [...] Installing WordPress Multisite with MAMP on OS X Musings of an Esposito [...] (numbered items link) [...] on July 28, 2010 at 12:32 | Reply

Iphone OS 3.1.3 to 3.1.2. | Arrow Webzine on July 31, 2010 at 22:44 | Reply [...] with Sauriks server. Follow this link to show you have to edit your host file for mac How to edit the hosts file in Mac OS X Leopard Decoding the Web [...] Charly Boy on August 11, 2010 at 6:02 | Reply Hi there, i did the as the instructions says & keyed in $ sudo nano /private/etc/hosts just to check if changes were saved and got this response: Last login: Wed Aug 11 09:20:58 on console Meier-Charles-Razis-MacBook-Pro:~ Charlyboy$ $ sudo nano /private/etc/hosts -bash: $: command not found Is this ok? Thanks, Charles Meier (Mac Newbie) Charly Boy & got this when i tried to ping iesnare: on August 11, 2010 at 6:05 | Reply

Meier-Charles-Razis-MacBook-Pro:~ Charlyboy$ ping iesnare.com PING iesnare.com (74.121.28.139): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3 Request timeout for icmp_seq 4 Request timeout for icmp_seq 5 Request timeout for icmp_seq 6 Request timeout for icmp_seq 7 Request timeout for icmp_seq 8 Request timeout for icmp_seq 9 Request timeout for icmp_seq 10
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 24/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

decoding on August 11, 2010 at 8:31 | Reply Hello Charly, as I said before dont include the $ symbol in the command, start from sudo Reid Sullivan on August 12, 2010 at 0:24 | Reply Due to the google pagerank of this article, and after some exhaustive research: I presume the issue here is that Safari passes all URL lookups to the mDNSresponder daemon that youve always seen running without really understanding why. If you sudo kill the mDNSr process, it will immediately re-appear, and those of you whom use Little Snitch will note its constant annoyance of this mDNSresponder service. Yes, this is the same process that 10.5.7- was only used to broadcast the Bonjour/Rendezvous service . Now, not only does this service announce, it handles Safaris built in URL DNS requests. Darn. So, my work-around, as an on-again-off-again ITer would be to use Hao Lis Saft plugin with your Safari distributions HL is very easy to get along with and will work something out with your corp. This way, you can neuter the integrated beast that Safari has become [think of how horribly IE is fleshed with Windows]. Apple has become the beast. Never did I think Apple would be commodered with satanic, turtleneck-abusing misanity. Mr. Big Money Bags, what have you done with your company? rean on August 16, 2010 at 13:07 | Reply i tried to install but it cant. sudo nano /private/etc/hosts then To proceed, enter your password, or type Ctrl-C to abort. what pass do i use? dsqrd2 on August 21, 2010 at 22:25 | Reply Rean.. i use the password for my mac os x user account. My account is also an administrator account. check here for password details. http://support.apple.com/kb/ht1274 tommy_b on August 23, 2010 at 15:41 | Reply This is kinda the namby-pamby way of modifying the hosts file, but for me it actually works very well so maybe others can make use of it. And everything you need to do it with is all standard on OS X. The time it takes you to do this will probably be less than poking around the text editors in Terminal. No third party apps. No navigating through pico (urg). You will need Terminal to issue to simply commands, but thats it. You will also need administrator rights. In Finder, under the Go Menu, choose Go To Folder, and type:

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

25/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

In Finder, under the Go Menu, choose Go To Folder, and type: /etc Scroll down a bit and youll find the Hosts file Control click on the file and do an Open With and choose TextEdit. If youre new to doing stuff like this, back ups are your friend in case something goes array so do a save as somewhere in your home folder (this eliminates the privileges issue, for the moment), ensuring encoding for the file is plain text and UTF-8 (TextEdit defaults to MacRoman so you have to watch that). Actually do that twice so you have two identical copies of Hosts called the second Hosts.bak. Now open the other Hosts file you just created and make your changes and save. Launch Terminal and type the follow: /usr/bin/sudo mv followed by one press of the space bar and then drag your newly created Hosts file onto the Terminal (this is just a shortcut to populate its path) followed by one more press of the space bar followed by /etc then press return. This will move the new hosts file, overwriting the old one in the process. Now you need to assign the appropriate ownership to the file, which should be owner=root (ie: system in Finder) and the group should=wheel. Back to Terminal type /usr/bin/sudo chown root:wheel /etc/hosts and press return. Flush your cache as directed above and youre ready to go.

Victor Mieres You are awesome. Thanks!

on March 22, 2011 at 6:27 | Reply

9to5mac.com- what's happened? - MacTalk Forums on August 26, 2010 at 7:03 | Reply [...] Posted by james the 2nd Host files? Where abouts are they and what am I looking for? Thanks How to edit the hosts file in Mac OS X Leopard Decoding the Web also, if you open a command terminal and type 'ping 9 to 5 Mac | Apple Intelligence' what IP [...] justin i got it there but it wont let me add anything to it on August 28, 2010 at 20:37 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

26/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

maz on August 31, 2010 at 23:13 | Reply can someone help me ive accidently modified the hosts file and cannot get it back to normal therefore my iphone wont restore. maz on August 31, 2010 at 23:22 | Reply can someone just copy and paste there 4.0.2 hosts so i can use it plz fernando Awesome. Thanks for the tip! iOS 4.1 Freeze on update - MacTalk Forums [...] [...] Fabio_Brazil @decoding Hello! I got some problem trying downgrade my iPad. The iPad iPad could not be restored. This device isnt elegible for the requested build. Could you help me to fix that? Thx My hosts looks like above ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## #as 4 linhas abaixo foi editada com # para nao ser lido #127.0.0.1 localhost #255.255.255.255 broadcasthost #::1 localhost #fe80::1%lo0 localhost 127.0.0.1 activate.adobe.com 127.0.0.1 practivate.adobe.com 127.0.0.1 ereg.adobe.com 127.0.0.1 activate.wip3.adobe.com 127.0.0.1 wip3.adobe.com 127.0.0.1 3dns-3.adobe.com 127.0.0.1 3dns-2.adobe.com 127.0.0.1 adobe-dns.adobe.com
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 27/48

on September 8, 2010 at 21:52 | Reply

on September 10, 2010 at 8:57 | Reply

on September 14, 2010 at 15:46 | Reply

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com 127.0.0.1 ereg.wip3.adobe.com 127.0.0.1 activate-sea.adobe.com 127.0.0.1 wwis-dubc1-vip60.adobe.com 127.0.0.1 activate-sjc0.adobe.com 74.208.105.171 gs.apple.com How to edit the hosts file in Mac OS X Snow on September 16, 2010 at 15:31 | Reply Leopard More Soma Please [...] How to edit the hosts file in Mac OS X Leopard Decoding the Web. [...] augustSix on September 17, 2010 at 17:24 | Reply Anyone ever had an issue where the terminal just dies after you get the promp, To proceed, enter your password, or type Ctrl-C to abort. I am completely unable to enter anyting exept enter and the prompt Ctrl+C..? What do I do? decoding on September 17, 2010 at 17:56 | Reply Just type your password, and press ENTER, it aint dead at the moment, it simply hides your typed characters. augustSix Thanks that helped alot! on September 17, 2010 at 18:24 | Reply

Veronica on September 20, 2010 at 16:39 | Reply Ive saved the code (for dreamweaver) with Control-O, Enter, and Control-X in the Terminal Now it says: An then type this to flush the DNS cache, and have your host file changes to take immediate effect: Code: dscacheutil -flushcache Where? Still in the Terminal? And after doing this, i just have to close it? Or what? (fyi: i dont have snow leopard, just mac os and i dont speek english well decoding
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on September 20, 2010 at 18:24 | Reply


28/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Yes, run the flush command on the Terminal, and you are done with it! Dave on September 27, 2010 at 16:49 | Reply Thanks, this was a great help. (and works just fine on my Mac OSX version 10.6.4) Preserve your basebnd on iPhone4 & upgrade to 4.1 on September 28, 2010 at 18:41 | Reply [...] view sourceprint? 1 $ dscacheutil -flushcache You can now test your new mapping on the browser! SOURCE [...] Robert Wakeford on October 1, 2010 at 13:20 | Reply excellent and concise article. Has already looked at a couple of tutorials prior to yours but found them to be over complicated and full of mistakes/omissions which made them difficult to follow. So I did not trust them enough to risk killing my machine over. Have now book marked your blog for future reference. Regards, Rob Bypassing the Overlord on October 13, 2010 at 7:54 | Reply [...] How to edit the hosts file in Mac OS X Leopard Decoding the Web You may skip the last step. (Step 5) [...] How to block a URL? - MacTalk Forums on October 21, 2010 at 13:06 | Reply [...] How to edit the hosts file in Mac OS X Leopard Decoding the Web has an explanation on how to edit your hosts file. Basically you can point any website you like to another location. So if you add a line Code: [...] Boris Stefanov on October 28, 2010 at 16:04 | Reply Getting my hands bloody on mac os x Gote chrome, skype, sql seveloper, java, etc. running kudos, apples Parveen Tomer thanx its working on October 30, 2010 at 14:44 | Reply

Gerald on November 7, 2010 at 9:26 | Reply I came to this discussion looking for a way to make a persistent alias declaration in 10.5.8, so this may be related. I could make an alias declaration in .bash_alias and source it but it wasnt operative after a reboot. I simply put the alias in
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 29/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

the three permissible files it is allowed in. In my home directory I created (touch) .bash_alias, .bash_profile and .bashrc and copied (cp) from .bash_alias to .bash_profile and .bashrc. The dotfiles have identical content. Now leopard can remember aliases between boots. Surely some unix tradition has been abandoned for this strange behavior with /etc/hosts and .bashxxx. Im here because microsoft broke my mirrors and Im using a borrowed mac for the first time. It seems to me that really big players are ok with creating their own conventions; all right but publish them and respect our time. Leo on November 7, 2010 at 21:49 | Reply In MacOS X Leopard only the original tip works. The sudo open -t will not work. This will launch the TextEdit and open the file, but when one tries to save it TextEdit will complaint that it does not have enough privileges to save the file. Makr on November 8, 2010 at 4:30 | Reply Thanks. Top tip on editing the hosts file. Hopefully saving me a new iphone ! Problmy Google flush DNS cache Pc a Apple on November 13, 2010 at 22:01 | Reply pipomnkovnk [...] Dal jsem tomu pknou ikonku a umstil do Docku. Jinak jsem kontroloval IP Googlu a mm zjitn IP, kdy to funguje. Tak to mon nastavm natvrdo. [...] Paddy on November 16, 2010 at 12:26 | Reply How do you un-Patch the host files for cs5? I installed a try before you buy version of CS5 from a torrent site and now i have enough cash to buy it. I had a CS4 master collection on there previously and when i try and deactivate it just says it wont connect to the internet and i think its because when i patched the host files for the cs5 install, it has blocked the connection to adobe! You thoughts or methods to rectify this problem would be much apreciated. John Hi Paddy, on November 16, 2010 at 12:44 | Reply

Go back into your hosts file and remove the adobe-related items (maybe back it up first). You might also wanna search for Adobes CS4 clean script. Just One Night Love Blog Archive How To Stop Yourself From Facebook-Stalking Your Ex [...] Heres a good instruction for Macs. [...] on November 18, 2010 at 21:21 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

30/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

jeff on November 19, 2010 at 9:05 | Reply i had done all the steps as above for my adobe cs5 creative suite , but after i done the dscacheutil -flushcache, and i reopen the illus ,no help menu in the cs5 install manager to deactivate homecalling. so i typed in my serial before i actually deactivated it. but after the serail , the deactivated button still unable to click , n then what should i do now?? will i save using it now ??im new to mac , so dont know much about mac jeff on November 19, 2010 at 9:05 | Reply i had done all the steps as above for my adobe cs5 creative suite , but after i done the dscacheutil -flushcache, and i reopen the illus ,no help menu in the cs5 install manager to deactivate homecalling. so i typed in my serial before i actually deactivated it. but after the serail , the deactivated button still unable to click , n then what should i do now?? will i save using it now ??im new to mac , so dont know much about mac really need hepls to told me what should i do , or tech me step by step .. thx alot . Natasha [ Error writing /private/etc/hosts: Permission denied ] This is what i get when i try to save it. paul Hi, on December 3, 2010 at 22:42 | Reply on November 30, 2010 at 18:15 | Reply

After I type in sudo., and Im promoted to give my Admin password I can not type in the password. It simply wont type. do you know why? thanks Jack on December 20, 2010 at 17:23 | Reply it doesnt show up when you type it but its still registering it jus type it in and hit enter and it will work Glen on December 15, 2010 at 3:14 | Reply Had to try this 3 times due to user error as I was getting the permission denied as well. But when followed completely the 3rd time, everything worked as you said it would. Thanks! Jack on December 20, 2010 at 17:22 | Reply when i type in the sudo nano thing it says im not in the sudoers file. what does that mean and how can i fix it?

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

31/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Carl on January 2, 2011 at 5:05 | Reply im mac osx 10.5.8 ,i want to use terminal to install something,and it say type password, i type any word with keyboard but it not do anything ,i hit enter but it say try again,it wouldnt let me type my password. how to solve this problem ? can you help me ?thx How to Update iPhone 4 to iOS 4.2.1 While Preserving on January 5, 2011 at 1:03 | Reply 01.59.00 Unlockable Baseband [Guide] | Jailbreaking iPhone .org - Covering Jailbreak / Unlock News, Apple, Mac, AppStore, Game Reviews, and more [...] you need more information on how to edit your hosts file, look here (Windows) or here [...] Clearing DNS cache in MacOS v10.6.5 | Many tiny bits on January 10, 2011 at 12:38 | Reply [...] for my DNS host to cron update my domains zone file. So what to do? You guessed right. I can do an oldschool hosts file hack. But wait, I already tried looking up the domain and the earlier resolved IP is still in my [...] zahra Jaan on January 10, 2011 at 16:19 | Reply When trying to edit the hosts file i get to the stage of the host file box and it has all the writing that above forums says it should..first line is hash hash and then all the other line up until this one : :1 local host. The problem is i cant type anything in this box before of after this info. Does anyone know how I can solve this!? The keyboard just doesnt even register in this box. WOuld be so grateful for any advice. swetha thankyou soo much!! It is crystal clear and easy to perform the steps. thanks again.. iphone4 stopped working, only dfu mode or plug into on January 23, 2011 at 12:51 | Reply itunes mode - Page 2 - iPhone Forum [...] 1013. tiny umbrella wont kick the phone out of recovery. assuming your on mac this might help How to edit the hosts file in Mac OS X Leopard if on windows 7 look in C:WindowsSystem32driversetc you will need to use notepad in [...] Ifad Ardin man! a big thanks for you! that was soo helpful. God bless you! mike
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on January 19, 2011 at 18:06 | Reply

on January 30, 2011 at 13:29 | Reply

on February 2, 2011 at 0:00 | Reply


32/48

hey all

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

hey all Edited the hosts file without a hitch. But the program I am trying to use seems to be ignoring the host file. Is there a second or third alias file I should be editing as well? Im trying to get a web based program to work, and the only workaround is to have their hostname as a trusted host.. thanx for any and all advice! How to edit the hosts file in Mac OS X Leopard | on February 9, 2011 at 17:06 | Reply Jacco's Website [...] can now test your new mapping on the browser! bron: http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ This entry was posted in Tips en Trucks. Bookmark the permalink. Training 15 januari [...] Edit Hosts File | Left Lane Blog on February 12, 2011 at 4:32 | Reply [...] Open the hosts by typing on the Terminal that you have just opened: view sourceprint? [...] Sandbox Upgrades on February 14, 2011 at 11:05 | Reply [...] step was to configure my Mac so I could get to the servers. Following the instructions found at How to Edit Hosts Files OSX and with the information given to me by our ICT administrator I was able to make the connection to [...] Kirpykla klaipeda Thanks, it work. on February 19, 2011 at 18:17 | Reply

How To Use SHSH Blobs Kami Dev-Blog on February 20, 2011 at 8:08 | Reply [...] For Mac if you have permissions problems you can edit via terminal using this tutorial [...] ryan on February 28, 2011 at 21:31 | Reply i edited this file and now i want the defaul stuff back what is it i have ## # 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 but i think its suppost to be ## # Host Database # # localhost is used to configure the loopback interface
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 33/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

# 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 Krishnan It helped me. Thanks . stevenukas Great,works fine! on March 1, 2011 at 14:40 | Reply

on March 2, 2011 at 15:45 | Reply

How To Backup And Use SHSH Blobs Kami Dev - Blog on March 5, 2011 at 8:41 | Reply [...] For Mac if you have permissions problems you can edit via terminal using this tutorial [...] chaasakawan on March 7, 2011 at 0:07 | Reply Im trying to create a local domain name, a local email address and the same for the server. I am using xamp as my server package. I have instructions telling me to change these lines: 127.0.0.1 http://www.example.com # For browser access 127.0.0.1 mail.example.com # For email access 127.0.0.1 example.com # For mercury mail server Yet what I get in the terminal are these lines: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost Is there anyone that can make sense of this for me? Thank you kindly! Koj Thanks a bunch! Very helpful! on March 21, 2011 at 12:53 | Reply

Kyakpachik on March 25, 2011 at 0:30 | Reply if you dont like using terminal then text wrangler is a great way of editing the hosts file to see the hosts file where it is, you need to use something like tinker tool to show hidden and system files, go to your root and follow up private/etc/ and open it e.g. by drag and drop, text wrangler will ask you for your password
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 34/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

like in windows, when you see everything you can easily damage things, so be careful ; ) How to edit the hosts file in Mac OS X Leopard (via on March 29, 2011 at 13:24 | Reply Decoding the Web) Sudipta K Paik on wordpress [...] Introduction The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address on the browser, the system is checking if there is a relevant entry on the hosts file and gets the corresponding IP address, else it resolves the IP via the active connection's DNS servers. The hosts file can be edited to block certain hostnames (like adserving/malicious hosts), or used for web development purposes, i.e. to redirect domains Read More [...] Naives My Blog - How to edit the hosts file in Mac OS on April 20, 2011 at 19:00 | Reply X Leopard [...] Works for Snow Leopard too! Click here for the original source. [...] JayZi Hello its my host file ## # 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 127.0.0.1 obdev.at on April 30, 2011 at 18:37 | Reply

what can i do now ? my itunes could not be connected to internet !!!!!! please help me ozgur uksal great help mike Im trying to install photoshop cs5 on May 4, 2011 at 5:48 | Reply

on May 8, 2011 at 20:27 | Reply

ive followed the instruction. when photoshop opens only the top section appears. Instruction say to go to help menu and deactivate. but the deactivate line is gray and not clickable.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 35/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

PLEASE help!

Jonathan Old article, but exactly what I was looking for.

on May 11, 2011 at 23:27 | Reply

iPhone not eligible for build on May 13, 2011 at 12:31 | Reply [...] found in the Apple Support Communities, worked for me. Edit your hosts file. Instructions: How to edit the hosts file in Mac OS X Leopard Decoding the Web Remove the line containing: "xxx.xxx.xxx.xxx gs.apple.com" Then try the update again. [...] Drupal 7 Introduction and Custom Theming project:designportfolio [...] How to edit the hosts file in Mac OS X Leopard [...] on May 13, 2011 at 23:07 | Reply

[ArcEmu] (Emux) How do i make my private server public on May 28, 2011 at 0:22 | Reply ? (Mac) [...] host file part, which you don't even have to do. (If you insist, the host file can be found using this link) You should be able to follow the router section and config section verbatim. [...] Paul Yun on June 2, 2011 at 5:26 | Reply okay people i am new here and please reply fast! Im having trouble with this Blocking home calls in the host. im new to the host thingy and it is confusing. But its for block home calls in cs5 thanks! please replyyyy! goodboat Sorted! Thanks for the post, I couldnt find the file for ages. on June 3, 2011 at 19:32 | Reply

nick on June 6, 2011 at 17:20 | Reply ok, i changed the host file to point to cydiss servers a while back, and it was fine, but after a while it wouldnt work anymore, so i want to set it back to default. i have gone back into terminal and deleted the cydia ip and saved properly, but when i try to update or restore iphone or ipad, it hangs when there is just a little bit left. i dont know what else to do because it wont let me update or restore thru itunes. ojobson Nice! on June 14, 2011 at 12:24 | Reply

Once you have your hosts file changed, you can then use the free version of MAMP to host multiple websites on your mac! Makes testing and development a breeze!
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 36/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

http://www.olij.co.uk/whitenoise/mamp-lamp-for-mac-hosting-multiple-sites-without-the-proversion/ Jaspreet Bhamra on June 29, 2011 at 20:15 | Reply i have to find file 74.208.10.249 gs.apple.com in my host files and the remove it to updrade to ios5 on my iph 3gs. it do and get error 3002 and to get rid of this i was fillowing links to find that file in host and remove it. in host files i couldnt find that file. can someone plz tell me where do i find that file on mac 10.6.8 and itunes 10.3.1 thanks heaps For non-jailbroken devices: ## # 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 #74.208.105.171 gs.apple.com #74.208.10.249 gs.apple.com #127.0.0.1 gs.apple.com For Jailbroken devices: ## # 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 #74.208.105.171 gs.apple.com #74.208.10.249 gs.apple.com The last line did not have the #, so that might have to be removed if this doesnt work. Rose on June 14, 2012 at 17:46 | Reply I tried to modify my hosts file in order to access facebook because it is blocked in my country. However, I deleted all the info from my root hosts system by mistake. my hosts file is now just an empty and blank box. I cant do anything. Please help me to get anything that was original from my hosts file. Thx
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 37/48

on July 11, 2011 at 16:52 | Reply

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

lesishu Thanks very much, worked

on July 14, 2011 at 12:12 | Reply

chantalezoe on July 26, 2011 at 21:23 | Reply what happens if you completely didnt see that you had to patch your host list before installing the trial??!! my computer screen ended up having this texture background to it. i have now deleted all adobe files and turned the internet off. HELP! what can i do?!?!?!?!? links for 2011-08-02 | Michael Ong | On9 Systems on August 3, 2011 at 3:22 | Reply [...] How to edit the hosts file in Mac OS X Leopard Decoding the Web (tags: mac osx host) [...] Jose Apolloe thanks!! on August 7, 2011 at 23:27 | Reply

Bits And Pix OSX: How to edit/flush the hosts on Macon August 14, 2011 at 22:32 | Reply [...] Source [...] Drupal + Lighttpd: enabling clean urls (rewriting) on August 15, 2011 at 1:03 | Reply Admins Goodies [...] fastest (quick&dirty) way is to edit your hosts file: http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ Add: 10.10.10.1 mywebsite.com Replace 10.10.10.1 with the IP of your Ubuntu [...] Breno Mirisola (@brenomirisola) Please Help, on August 20, 2011 at 22:12 | Reply

When i type : sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts I get this error message: 2011-08-20 13:42:21.191 TextEdit[717:1907] PersistentUI: LSSharedFileListInsertItemURL() failed at inserting URL file://localhost/etc/hosts This only happened in one of the 3 new macbook pro i purchasedAll of the other oppens the host file with text edit normally. Can anyone help me? Thanks. Dan
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on August 22, 2011 at 19:20 | Reply


38/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Hi Im trying to activate Photoshop CS5 and adding the activation stuff in etc file does save but the flush doesnt seem to say its flushed. It just goes to the next line ready for another command. A) is that correct B) if it is, its still managing to communicate with Adobe are there new activation URLs we need to add? Im running out of serials to use now it seems. Im running the very latest Lion. Cheers. Friend is IP banned from forums/website? [...] [...] Naga Harish Movva Nice post buddy on August 31, 2011 at 9:04 | Reply

on September 2, 2011 at 13:13 | Reply

totes profesh Blog Archive calling the github API on September 5, 2011 at 0:34 | Reply with node.js [...] URL is http://local.host:8001. To make that work, I also had to map 127.0.0.1 to local.host in my hosts file (note that that link has you using nano to edit it I like to navigate to the directory and [...] Raksmey Uch on September 19, 2011 at 18:49 | Reply After the terminal prompt the passwords, I try to put my user passwords. However, I could not type anything at all. Until I press ctr and c it now allow me to type. When I type my user password it can not found. What should I do to edit my host file Jonathan thanks for the tip man.. on September 24, 2011 at 2:31 | Reply

But it seems that there is a DNS issue and I have to manually add in the DNS servers IP addresses and search domains(I used my ISPs) in order to work.. However, the speed is abit slower though.. any better solution for this?? thanks! james on September 28, 2011 at 10:01 | Reply use textwrangler if you dont want to use nano. In terminal, navigate to /private/etc/ and use the command open . to open a finder in that location. Then use textwrangler to open the hosts file to edit.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 39/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

- Unique As Me | Unique As Me [...] Link to edit your host file on a Mac. [...] Pedro Peixoto thank you! great help!

on October 3, 2011 at 7:55 | Reply

on October 3, 2011 at 16:21 | Reply

Issues upgrading your iPhone (or iPod Touch or iPad) on October 13, 2011 at 14:40 | Reply to iOS5 | Starlifter_ [...] credit to gentschi on the Apple forum and decoding.wordpress.com for the info for this work around, [...] Computers Technology Gadgets & Web 8 Mac Host on October 16, 2011 at 0:36 | Reply Sites Computers Technology Gadgets & Web [...] How to edit the hosts file in Mac OS X Leopard Decoding the WebApr 6, 2009 Editing the hosts file in Mac OS X Leopard, is a pretty easy task, especially if you are familiar with the [...] Alina on October 23, 2011 at 10:12 | Reply i need to delete some hosts files b/c im trying to get back into my blocked/hacked account vkontatke.ru so this is what i was told to do to fix the problem, but i really dont know what im doing and i dont wanna delete something i dont know, so what should i do? restoring@4.2.1 error 1600 [...] [...] on October 24, 2011 at 12:18 | Reply

Dane Naidoo on November 1, 2011 at 8:11 | Reply I have Lion and when i do the following the correct doco comes up but its locked?? i didnt have this problem on snow leopard.. help how to build a pc on December 4, 2011 at 0:21 | Reply Awesome issues here. I am very glad to see your article. Thank you so much and I am having a look ahead to touch you. Will you kindly drop me a e-mail? Tobias on December 11, 2011 at 23:43 | Reply Hey I cannot type my password on the terminal application How to bypass Turkeys netcensorship jfml illustration, animation, politik etc. on December 27, 2011 at 14:21 | Reply

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

[...] in the local host-file which is accessed even before the DNS and for me that worked. There40/48 is

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

[...] in the local host-file which is accessed even before the DNS and for me that worked. There is a Howto for OSX here, do a search for edit host file + yourOS to find out for other Systems. I got Youtubes [...] Iphone kan niet worden hersteld,.... - iCulture forum | on January 2, 2012 at 21:52 | Reply iPhone, iPad, iPod touch, Apple TV en iOS [...] [...] gino on January 24, 2012 at 10:26 | Reply hi anyone knows how to redirect a page in a website instead of a website??? example: 127.68.9.16 http://www.goyk.com/flash.asp?path=2465 anyone help me pls?????? Alighisolfele ! : ? on January 26, 2012 at 11:37 | Reply

gino on January 27, 2012 at 4:44 | Reply hi anyone knows how to point any entered url to http://www.goyk.com/flash.asp? path=2465 instead of ipaddress??? example: http://www.goyk.com/flash.asp?path=2465 http://www.google.com iwant to scare someone with that flash when he goes to porn sites any idea of it please share thanks Niels on February 13, 2012 at 3:19 | Reply Hello When I am following the steps I come in a Empty screen of my host.. The Mac is clean computer is that normally? Regards Niels New Slow Loading Report Thread - Page 6 on February 15, 2012 at 16:37 | Reply Grasscity.com Forums [...] To edit hosts file please follow one of the following articles according to your OS Mac : How to edit the hosts file in Mac OS X Windows : This may sound silly suggestion to even post on Windows Reference but will help avoid [...]
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 41/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Trying to make it so on my mac (or entire local on February 24, 2012 at 20:34 | Reply network) any *.dev domains point to an IP - Admins Goodies [...] (it also touches on the idea that *nix-based systems have the same file) and heres a great blog post touching on the same thing, with the content focused on [...] Joel thanks! on March 4, 2012 at 2:46 | Reply

Joey on March 6, 2012 at 2:29 | Reply Is this FAKE? Why does it give me this message afte rthe FIRST step: WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type man sudo for more information. MAKES ME HORRIBLY UNEASY. file informatie Hey, weer iets bijgeleerd op deze website on March 12, 2012 at 5:37 | Reply

Hloe on March 13, 2012 at 8:55 | Reply This is the response l am getting can someone help me Last login: Tue Mar 13 15:57:28 on console HLONIPHANIs-MacBook-Pro:~ hloniphani$ sudo nano/private/etc/host Password: sudo: nano/private/etc/host: command not found HLONIPHANIs-MacBook-Pro:~ hloniphani$ sudo dscacheutil-flushcache sudo: dscacheutil-flushcache: command not found HLONIPHANIs-MacBook-Pro:~ hloniphani$ sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit/etc/hosts Password: sudo: /Applications/TextEdit.app/Contents/MacOS/TextEdit/etc/hosts: command not found HLONIPHANIs-MacBook-Pro:~ hloniphani$ sudo nano/private/etc/host sudo: nano/private/etc/host: command not found HLONIPHANIs-MacBook-Pro:~ hloniphani$ decoding on March 13, 2012 at 9:52 | Reply There is a space between nano and the path, sudo nano{space}/private/etc/host, as well as dscacheutil{space}-flushcache. Thats why you have been getting command not found. Just copy paste the exact commands from the post above. Adobe Master Collection CS5 Serial Numbers | Techknowledgy To You.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on March 23, 2012 at 11:05 | Reply


42/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

[...] 3. Now through your Notepad, navigate to Computer > Local Disk (C:) > Windows > System32 > Drivers > Etc. > Hosts and add text from this file @ the end of the HOSTS File like in the image below and than Save it. If you are on Mac than you can check this tutorial. [...] Installing WordPress Multi-Site on Apache localhost using Sub-Domains | CatN [...] (use this tutorial for further [...] on March 30, 2012 at 13:51 | Reply

D_Coy on April 11, 2012 at 14:12 | Reply I never worked before on Mac and this was very helpfull to me. Thanks a lot. Adobe Master Collection CS5 Serial Keys | on April 20, 2012 at 4:47 | Reply MonsterUpdates.com [...] the HOSTS File like in the image below and than Save it. If you are on Mac than you can check this tutorial. Abode Hosts [...] print screen mac on April 25, 2012 at 2:38 | Reply If you use your Mac like a windows PC, then you can ignore the last command and just restart your Mac. That works as well. californiaa this shit is complicated wtf on May 2, 2012 at 8:19 | Reply

purplehaze on May 31, 2012 at 12:11 | Reply so many comments.. which is the best way to do this thing? i cannot figure out.. anyone? please help? Adobe Master Collection CS5 Serial Numbers | Hacking on June 1, 2012 at 19:32 | Reply Tricks & Tips | Windows Tips | Facebook Tricks [...] If you use Adobe products than you might know that their products are simply awesome. If you are a Graphic Designer or a VFX Professional you might be using one or another product from Adobe like Photoshop or After Effects well these two are mine favorite too. But there is a small problem that these products are not free so you need to purchase them in order to unlock their full potential. So I just gathered few serials which can be used to make these products full version and boost your creative performance. So below I have created a full tutorial on how you can use these serials, as you need to mod your Hosts file to get them accepted. If you do not follow steps accordingly than you might not be able to get them into work so check out tutorial carefully. 1. First step is to install your product as a trial version, well you can install them individually or you can install Master Collection. 2. So after you have installed your product do not run it just close it and than go to Start and search for Notepad and run it as an administrator. 3. Now through your Notepad, navigate to Computer > Local Disk (C:) >
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 43/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Windows > System32 > Drivers > Etc. > Hosts and add text from this file @ the end of the HOSTS File like in the image below and than Save it. If you are on Mac than you can check this tutorial. [...] Blaine on June 5, 2012 at 19:42 | Reply After tracing through these forums and much confusion I have just edited the Network settings to ensure that there wasnt a conflicting IP address Instead of editing the host file. I belive this is all that that is being edited within the host file. I have managed to set it up this way and its all running fine. Its usually allways just the simple things, However many people for get to check these first, myself included. WP Engine Support Garage Emulate DNS Change with on June 7, 2012 at 21:14 | Reply the Hosts File Trick [...] Beginner Geek: How To Edit Your Hosts File Mac: How to edit the hosts file in Mac OS X Leopard Catch All: Wikipedia Hosts [...] vickie on June 9, 2012 at 18:09 | Reply on installing the adobe master collection, after pasting the sudo nano /private/etc/hosts / and pressed enter. and some error it shows and then it asks for password on next line. and then i write my password, and host file doesnot open what to do ??? pakholeung on June 11, 2012 at 7:41 | Reply Vickie do you press enter after you wroth your good password? ? Because when you are typing there wouldnt show you some stars or anything! its invisible!! After that it will show you i think 10 lines of words/symbol! its start with this one > # pakholeung Reblogged this on pakholeungprofile. on June 11, 2012 at 7:42 | Reply

Adobe CS5 Serial Numbers - Make All Adobe Products Fullon July 11, 2012 at 8:39 | Reply Version [...] in the screenshot below. If you are a MAC user then see how to edit your hosts file on MAC OS X here.4. Now save this file and run your Adobe CS5 Product.6. There are different serials for Windows and [...] rima kas on July 18, 2012 at 7:31 | Reply when you type in $ sudo nano /private/etc/hosts you can only read what is in hosts file when you type in sudo nano /private/etc/hosts (without $ in the beginning, then it prompts with password and you can edit hosts file this was my little discovery maybe it will help to someone
44/48

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Swapna Gupta (@septerr) Thanks for the no-fail instructions.

on July 23, 2012 at 23:35 | Reply

Abel Suing on August 9, 2012 at 12:14 | Reply It is posible to edit the hosts file in Mac OS X? without an admin password. thanks! Daniel Leandru on August 10, 2012 at 0:35 | Reply Its complicated and you have to search ever the commands MAC SUCKS! How to edit the hosts file in Mac OS X - FJELLSOFT on August 16, 2012 at 9:32 | Reply [...] How to edit the hosts file in Mac OS X Leopard Decoding the Web. Tagged config, hosts, osx. Bookmark the permalink. Developers Needed! Participate in the Visual Studio 2012 Beta Exam Process Born to Learn Born To Learn Born to Learn [...] RT Under DNS DDoS Attack - How To Restore Access on September 6, 2012 at 22:27 | Reply [...] More detailed Mac Instructions here: [...] Franois Lavigne on September 11, 2012 at 23:40 | Reply This is what solved it for me: The line ending of my hosts file were Mac Classic (CR), which is wrong. Open it using TextWrangler ( http://www.barebones.com/products/TextWrangler/ ) and on the bottom of the window, in the middle, you must change is to Unix (LF) and save it. Boom, worked. fox on October 21, 2012 at 21:47 | Reply have to stay with very slow site access, dont understand a word of the instruction. ( Nes on November 6, 2012 at 18:26 | Reply Ok, so nobody seems to have an issue with the fact that when dealing with these HUGE lists, theres no way to edit large portions of them using the mouse highlight/select function. How do you delete something like a giant list that has just been imported without pressing the delete key over and over again for 15 years? ofbarea on December 6, 2012 at 18:14 | Reply nano does not come bundled with OSX Mountain Lion, so I downloaded the source code, compile it using command line tools of XCode 4.5.2 and followed the listed instructions. To me, moving to Mac has been some learning experience. Little tips from forums like this really make a huge difference. Thanks a lot.
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 45/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

Abel Suing How can we back the default host file in Mac OS X?

on December 25, 2012 at 6:02 | Reply

Matt G on January 2, 2013 at 23:48 | Reply How can we go back to the original host file if something goes wrong? Adobe Master Collection CS5 Serial Numbers (worked on January 8, 2013 at 5:42 | Reply real!) Bonobono's stories in the philippines. [...] the HOSTS File like in the image below and than Save it. If you are on Mac than you can check this tutorial.4. So now you have completed the main step which will help you in getting your serial accepted, [...] Ye Olde iPhone Backup Server - ProfHacker - The on January 21, 2013 at 19:01 | Reply Chronicle of Higher Education [...] something else by modifying a kind of a personal phone book called your hosts file. Editing this file you can, for example, change the less than memorable 10.0.1.16 to something like [...] Hanna on January 25, 2013 at 21:40 | Reply I have a problem with this. After successfully writing my admin password and entering the host file, it says: You dont own the file hosts and dont have permission to write to it. You can duplicate this document and edit the duplicate. Only the duplicate will include your changes. I have no idea what to do! I am logged in as admin and I have written my password. All I want to do is to permanently block a stubborn pop-up ad website that freezes Safari down. Why does it have to be so *insert suitable word of choice* hard? If anybody can help me, I would be very thankful. Scott Ferguson on February 1, 2013 at 14:12 | Reply Some ahole copied your work without even bothering to say thanks. http://blog.grapii.con/2012/08/how-to-edit-the-hosts-file-in-mac-os-x-10-8-mountainlion/comment-page-1/#comment-29486 Slightly modified URL so as not to give him undue backlinks decoding on February 1, 2013 at 14:52 | Reply I hope that Google will take care of the duplicate content, and rank it appropriately. Thanks for mentioning it! 4oD without the adverts at lab.davenicoll.com on February 10, 2013 at 18:25 | Reply [...] flush your DNS cache [how to in Windows / how to in Mac OS X], restart your browser and watch your favorite show [...]
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ 46/48

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

How to edit the hosts file in Mac OS X Leopard | Markon March 19, 2013 at 22:30 | Reply L. Reyes [...] Thanks to decoding the web [...] Django with Apache 2, mod_wsgi and virtualenv on on March 26, 2013 at 16:10 | Reply Ubuntu 12.04 | nille.org [...] which most likely is not your server. Heres some info on how you do this on Windows 7. Same information if youre on a Mac. You can verify that your hosts file is being picked up by your OS by [...] nina on April 8, 2013 at 0:09 | Reply Hello, I have an issue, yesterday I did everything as listed on here and my PS5 stopped working it tells me it cannot be opened because it may be damaged or incomplete.. ? The Love/Hate Affair XiaXue | BLog.CripperZ.SG on April 13, 2013 at 19:00 | Reply [...] just do what i edit, null route her blog to your host files here is howto for your windows, mac and linux respectively. Just add the entry 127.0.0.1 xiaxue xiaxue.sg and [...] jehzlau This is really helpful. Thankssss! on April 26, 2013 at 0:45 | Reply

Btw, how about in VIM? How can I save? I tried to use Command S, but it saved in a different directory. O__O decoding Press the Escape key, and then type :wq on April 26, 2013 at 0:58 | Reply

The Pastry Box Project | 26 April 2013, baked by Erin on April 26, 2013 at 11:02 | Reply Kissane [...] instead of the article, giving me a chance to realize that Id really rather not. This is how I edit my Hosts file on the Mac. Windows users can do a version of the same thing, and there are also plug-ins for [...] Martijn on May 8, 2013 at 13:12 | Reply Ctrl+O executes Open file, so how to send Ctrl+O to the terminal window instead? madcamper on May 8, 2013 at 19:08 | Reply sry im a nub, can anyone please kindly explain to be baby steps pls? kpvl
decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

on May 23, 2013 at 21:17 | Reply Searched for edit hosts file on mac
47/48

After all these years, you still help me out buddy

26/06/13

How to edit the hosts file in Mac OS X Leopard | Decoding the Web

After all these years, you still help me out buddy and your post came up first! decoding Great satheeshreddy.mudireddy thank youGreat..

Searched for edit hosts file on mac

on May 24, 2013 at 9:20 | Reply

on June 5, 2013 at 8:49 | Reply

Setting up Virtual Hosts on XAMPP on Mac and Windows | on June 6, 2013 at 9:49 | Reply The Poet [] to edit the hosts file here: for Mac users | for Windows [] Do you need to edit the hosts file in Mac OS X? | on June 14, 2013 at 16:44 | Reply chimac.net Stuff worth knowing about [] seems to work in 10.6.1 according to one comment. Thanks decoding! He has some other network related information at his website if you need more help. I tested this [] Chang Hyun Park on June 18, 2013 at 9:48 | Reply Just blocked a couple of pages that I waste my time on frequently during the exam prep period. I turned on my apache server and my fancy page telling myself to study and mapped the sites to 127.0.0.1(me) so I get my page when trying to access those pages Thx

Comments RSS

Blog at WordPress.com. Theme: MistyLook by WPThemes.

decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/

48/48

Das könnte Ihnen auch gefallen