Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an Ubuntu machine running LAMP. While on the machine I can type localhost or the computers name to access htdocs. From another machine I can only access the machine via its IP Address.

This just started happening recently when someone rearranged the network cables and removed a hub sitting between the machine and the network, which makes me think it wasn't all the stable to begin with anyways.

Any suggestions on where I should start looking?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Well if the DNS name isn't working I would start with troubleshooting DNS.

share|improve this answer

You have a DNS problem.

  1. Find the DNS server on your network.
  2. Add an "A" record specifying the IP address and hostname.

If you have no DNS server, you can add the hostname and IP address to the "hosts" file on the other machine.

share|improve this answer

Miles Erickson is right. First, try to update your DNS server if you have one or just add an entry in your /etc/hosts IP_address_of_the_web_server Web_server_hostname

Save your file and try to ping the webserver by its hostname. thanks

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.