Latest Time Machine Patch
Kevin Anderson
andersonkw2 at gmail.com
Fri Sep 15 12:52:05 UTC 2017
>>> The only thing that has come up lately is potentially supporting
>>> setting the avahi hostname rather than the current method of
>>> using the netbios name so that it would show as lowercase rather
>>> than all capitals. I personally don't have a strong opinion either
>>> way but am open to suggestions.
>>
>> The uppercase netbios name is used anyway for the _smb._tcp record, isn't it?
>> Looks like we're stuck with this cruft…
>
> The discussion was about both _smb._tcp and _adisk._tcp (their names should obviously match).
> That can be done in a separate patch, pending further discussion, after this goes through.
> Note that the dns_sd code (which is, I must reiterate, broken and doesn’t compile) passes NULL to DNSServiceRegister() for the name parameter, which sets it to use the default name (i.e. the hostname), instead of using the NetBIOS name (like Avahi).
>
> Instead of choosing a default that can’t be modified, we could add a global option, say `multicast dns name` with a sensible default of either the NetBIOS name or the hostname, whichever makes more sense.
> Netatalk added a similar option `zeroconf name` about a year ago, see https://sourceforge.net/p/netatalk/feature-requests/99/.
>
So personally I agree with Omri that I think that could go in a
separate patch afterwards.
I need to look more in to it but could a call to
avahi_client_get_host_name() [1] be used to get the hostname to
publish on? If that does in fact work it would default to the system
hostname (and could be modified in the Avahi configuration based on
what the user wishes).
[1] https://avahi.org/doxygen/html/client_8h.html#a89378618c3c592a255551c308ba300bf
Thanks,
Kevin Anderson
More information about the samba-technical
mailing list