Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my hostname is newton ...when I set " Newton" in /etc/hosts .. parallels stops working.. when I set " localhost" in /etc/hosts apache installed via ports stops working.. when I add both '" localhost", and " newton" to hosts file.. parallels network doesnt work

share|improve this question

migrated from Mar 20 '10 at 18:38

This question came from our site for professional and enthusiast programmers.

I'd say, this is not generally wrong. You definitely should leave the first few lines in your /etc/hosts file:       localhost broadcasthost
::1             localhost 
fe80::1%lo0     localhost
# Add additional host names below: newton testhost something

I've got such a configuration myself on Mac OS 10.6 (Snow Leopard) and had this on 10.5 (Leopard) as well, with Parallels Desktop and Apache still working.

But this configuration does not mean your additional hostnames are working on your virtual machines in Parallels as well. Edit the host files on each VM separately.

share|improve this answer

Don't play with "/etc/hosts"! The original file is as follows, don't change it:

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##   localhost broadcasthost
::1             localhost 
fe80::1%lo0 localhost

Most likely, you need to change the name and/or address on which you bind in your Apache configuration.

share|improve this answer

is there any reason you could not have it as       localhost newton testhost something broadcasthost
::1             localhost 
fe80::1%lo0     localhost


And in some cases you want to specify hosts. Especially on internal networks like I have where you do not have a DNS host setup. (House Lans and clusters that do not see outside world)

so I define the ipaddress and names in the host files so that computers can talk to each other without the hassle of setting up a DNS server.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .