This question is an exact duplicate of:
I'm trying to ping my Pi by hostname from a windows machine on the same eth0 network. I've done the following two commands:
sudo apt-get install samba
sudo apt-get install avahi-daemon
However I still can't ping my pi by host name. I'm getting back:
Ping request could not find host <hostname>. Please check the name and try again.. I CAN however ping my windows machine by hostname from the pi, just not vice versa.
Another interesting bit of info, when I type
host <hostname> I get the response:
;; connection timmd out; no servers could be reached
What's goin' on here?