Avahi/mdns config
From 0xWIKI
Add the required useflags:
echo "net-dns/avahi mdnsresponder-compat" >> /etc/portage/package.use
Then, emerge the required packages:
emerge net-dns/avahi sys-auth/nss-mdns
Next, edit /etc/nsswitch.conf so the host line looks like this
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4 wins
And finally add the avahi-daemon service to the startup and start it
rc-update add avahi-daemon default && /etc/init.d/avahi-daemon start