-   Linux - Newbie (
-   -   Can't contact machine by its hostname (

laredotornado 05-03-2011 08:50 AM

Can't contact machine by its hostname

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


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 03:32 AM.