I've been doing everything I could and researching this for hours, and I'm now starting to think that something is actually BROKEN. As far as I can tell and as far as people on IRC can tell, I'm doing all the right things. If I'm setting things up right, and it's still not working, then maybe there is a bug.
I'm trying to advertise my Apache server using Avahi, and to do that, I installed mod_dnssd, according to these instructions:
Diagnosing the problem, I came across this error from Apache:
[Tue Aug 16 16:42:12 2011] [error] avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name
127.0.0.1 localhost localhost.localdomain
::1 localhost6 localhost6.localdomain6
192.168.1.30 compute0 compute0.localdomain
I even have this in my /etc/apache2/httpd.conf:
Here are some other references:
In the last one, the user set the hostname using the "ServerName" option for Apache. That didn't work for me (yes, I did restart the service). This might suggest a problem with Apache. Otherwise, it's a bug in how mod_dnssd is looking up the local host name.
I even tried adding a different name ahead of "localhost" on the 127.0.0.1 line of /etc/hosts. No dice. It's like it has "localhost" hardcoded somewhere.
I don't see any change that could cause this when comparing with fedora package:
avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name
In Google I found this links that could help you:
Did you review it?