I have a lot of Apple hardware (MacBook, Hackintosh, iPhone, etc.) configured with Bonjour and I want my RPi2 be resolved by network.
apt-get update apt-get install -y avahi-daemon update-rc.d avahi-daemon enable service avahi-daemon stop vi /etc/default/avahi-daemon |
and change the line:
AVAHI_DAEMON_DETECT_LOCAL=1 |
to
AVAHI_DAEMON_DETECT_LOCAL=0 |
then start the Avahi-daemon with
service avahi-daemon start |
Now we’re can test resolving by ping for example
$ ping raspberrypi.local PING raspberrypi.local (192.168.1.102): 56 data bytes 64 bytes from 192.168.1.102: icmp_seq=0 ttl=64 time=0.439 ms 64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=0.446 ms ^C --- raspberrypi.local ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.439/0.443/0.446/0.003 ms |
Problem solved.