Changing Avahi Hostname Default
Ralph Böhme
slow at samba.org
Sun Nov 5 11:47:42 UTC 2017
Hi Kevin,
On Fri, Oct 06, 2017 at 10:53:24PM -0400, Kevin Anderson via samba-technical wrote:
> 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.
Which is really ugly.
> 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.
generally makes sense.
What about
mdns name = mdns | netbios
Using the generic "mdns" instead of "avahi" would work for dns-sd as well in
case someone is interested in that.
Thoughts?
-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
More information about the samba-technical
mailing list