If you're having errors starting
specjour listen, make sure that the avahi daemon is running. This should be true for most conventional desktops, but you might have problems on a minimal installation.
On Ubuntu you will probably need libavahi-compat-libdnssd-dev in order to install specjour, this should do the trick:
sudo apt-get install libavahi-compat-libdnssd-dev
On an Arch Linux, this should do the trick:
sudo /etc/rc.d/avahi-daemon start
Check your own distribution's documentation for the specific way to do it there.
Add this to your /etc/make.conf
USE="[...] dbus autoipd howl-compat mdnsresponder-compat "
And then install the following :
emerge nss-mdns emerge net-dns/avahi
Add avahi (Bonjour) to the boot sequence :
rc-update add avahi-daemon default
Edit the file /etc/nsswitch.conf :
#hosts: files dns hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
This allows your system to resolve the names foo.local