With the recent patch to support time machine being merged I would
like to revisit the configuration of the hostname for Avahi. Currently
the Avahi registration code calls lp_netbios_name() to set the service
name that is being registered to the netbios name. This is typically
the hostname in all capitals.
The DNS-SD code, although broken for a while according to Omri, sets
the value for the service name to NULL which has the effect of using
the system hostname but in the correct case.
I would like to submit a patch that either changes the Avahi code to
call avahi_client_get_host_name to get the hostname from the Avahi
server or to add a configuration option to use either
lp_netbios_name() or avahi_client_get_host_name (maybe "multicast dns
name = avahi|netbios"). I wanted to see if anyone had strong
preferences on which route to go down though.
My personal thought is to change it to just call
avahi_client_get_host_name which would allow users to change the name
the service gets published on in their Avahi server configuration.