The tosser who wrote Avahi and the wanker who made it default in Ubuntu uses ".local" as Avahi's internal domain name therefore nothing works. You can nslookup it but cannot use it in commands, scripts, URLs. Shitheads.
Edit /etc/avahi/avahi-daemon.conf and change
domain-name=.local
to
domain-name=.snafu
Save, exit, restart Avahi daemon, curse the fuckers.
As you can see, I am seriously pissed off with these clueless jellybrains.