Check if AVAHI is installed:

/etc/init.d/avahi-daemon status

if not installed:

sudo apt-get install avahi-daemon

Make a service:

sudo insserv avahi-daemon

Create config file:

sudo nano /etc/avahi/services/multiple.service

Insert the following into the file:

<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
        <name replace-wildcards="yes">%h</name>

Save and exit editor.

Restart avahi-daemon:

sudo /etc/init.d/avahi-daemon restart

To access from Windows

Install bonjour on windows system.


To ping a device with hostname = 'raspberrypi'

ping rasbperrypi.local