Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

3 Answers

up vote 1 down vote accepted

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.