pumpkinskin

How to edit the hosts file on mac os x

Recommended Posts

So I'm a Windows person and I just got a MAC and for the life of me I cant figure out how-to edit my local hosts file so I can hit my local test web server. Who can help me?

I'm running MAC OS X 10.6.7

Thanks!

Share this post


Link to post
Share on other sites

The process is fairly simple as long as you don't mind getting into terminal. Here's the steps:

Press COMMAND+SPACEBARType TERMINAL <Enter>Type: sudo nano /private/etc/hostsEdit the fileCONTROL O to saveCONTROL X to exit

Edit the Hosts file like you would Windows at this point. IP address TAB domain name. Hope this helps.

Share this post


Link to post
Share on other sites

The process is fairly simple as long as you don't mind getting into terminal. Here's the steps:

Press COMMAND+SPACEBARType TERMINAL <Enter>Type: sudo nano /private/etc/hostsEdit the fileCONTROL O to saveCONTROL X to exit

Edit the Hosts file like you would Windows at this point. IP address TAB domain name. Hope this helps.

 

agreed. Nothing more to say on that one.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By Austin
      Asim recently wrote me this email:

      ...Our company has a VPN that we loginto, I have a macbook pro machine andi have installed Windows 7 as a guestusing vm virtual box in this syste. Iam wondering, can we creat a vpnconnection on guest OS Windsows 7?
      I'm overwhelmed by the network optionsavailable and was hoping you couldprovide some direction...
    • By mgs
      I use a windows 7 Home Premiun and I would create a virtual network using the microsoft loopback adapter. I already create this network but when I enable it I got an error message "unidentify network " my question is how to fix this problem ....help please....
    • By jshepp
      I'm not too knowledgeable about networking and routers. Pretty much all I know is how to set up a router to create a wireless network, and that's all I've been using it for currently. I like playing games online (most notably League of Legends), and living with a big family on an 'ok' internet connection just won't cut it. For example, I'll start playing a game, and then someone else will start watching Netflix, making my game virtually unplayable.
      A friend mentioned about using router firmware to create a stable ping. He didn't really know much on the topic, but it sparked my curiosity. Is this even possible? And if so, will it have any negative effects to other users on the network. (Essentially, can I play my game on a playable ping without being an internet hog?)
      League of Legends Support led me to something about QoS, but as I read further into the article it seems it's about prioritizing bandwidth? (Again, I don't want to be an internet hog)
      Any insight into this topic would be greatly appreciated. Thanks!
    • By Rufio
      When I try to login to my router at 192.168.1.1 it accepts my username and password but just displays the message " (192.168.1.2) is managing this device " with a blank white screen, nothing else is visible. Is there anyway to fix this? I can't access my router control panel because of this.
    • By Steve
      I'm in the market for a good WIFI router/switch/repeater. Looking for something with at least 5 1Gig ports and the ability to repeat/extend the signal to another Access Point which is up stairs so i don't need to run wired Ethernet to the other side of the house.
      Looking online, This Western Digital N900 looks nice however it doesn't appear to have the repeater functionality.
      Anyone buy anything recently which is working out well? Or got a tip on something out there?
      Thnx
  • Who's Online   0 Members, 0 Anonymous, 26 Guests (See full list)

    There are no registered users currently online