Avahi looks for Avahi services on the lan, queries them to (in your example) show IP resolution.
Use of the IP address on your chromebook will get the result you are looking for (ping reply or ssh access).
Most networks do not store the machine name, just the IP. You can provide your own domain name lookup (for static ip addess) in /etc/hosts
(chromebooks must be in developer mode) by adding the line: raspberrypi.local 192.168.1.200
Or by automating it in a script, using sed
to replace the line begining with raspberrypi.local
, with the output of the command avahi-resolve --name raspberrypi.local
. That will work for dynamic IP allocations, but you will still need to run the script at least once everytime the RPi is powered on (in case it changes).
The reason you are not getting a result (that you expect) is because the domain name service (or DNS server) does not know about LAN address names.
The following will also work:
ping `avahi-resolve --name raspberrypi.local` ssh `avahi-resolve --name raspberrypi.local`
` is on the tilda key (~)