Avahi

avahi is a zeroconf service discovery & publishing program.

Emerge Avahi server
Install :

Enable serve (systemd)
Enable the server to start whenever thinks it is appropriate.

If you want to use it right away, also start the service:

Enable server (SysV)
Be sure to add the service to the default runlevel for the server daemon to start on system boot. Do so with the rc-update command:

Start the service (without restarting) with the rc-service command:

Emerge Avahi client
Gentoo contains the client component of Avahi that enables one to test this service.

Install :

Add the appropriate mdns into the hosts line in, An example line looks like:

To also enable IPv6 support, change the line to:

Once this is installed it should be possible to ping the hostname of the machine appending. For example: