LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't contact machine by its hostname (http://www.linuxquestions.org/questions/linux-newbie-8/cant-contact-machine-by-its-hostname-878556/)

laredotornado 05-03-2011 08:50 AM

Can't contact machine by its hostname
 
Hi,

I just upgraded to Ubuntu 11.0.4 (from 10). In my /etc/hostname file, I defined my machine's name, "my-machine". From the server, I'm able to SSH to myself,

ssh dave@my-machine

However, from another machine in the same network, I'm not able to SSH

Code:

davea-mbp2:systems davea$ ssh dave@my-machine
ssh: Could not resolve hostname my-machine: nodename nor servname provided, or not known

However, I'm able to SSH in using the machine's IP address. Any ideas how I get my machine name recognized on the network?

Thanks, - Dave

AlucardZero 05-03-2011 08:58 AM

Add it to the config on your router or DNS server? Or Add my-machine to your /etc/hosts file on each server.


All times are GMT -5. The time now is 11:27 PM.