Eu encontrei a solução tentando ajustar arquivos .config!
/ etc / avahi / services / contém * .services como afpd.services
-
Copie os afpd.servicies para corresponder a cada máquina que você deseja anunciar: server1.service, server2.service, ...
-
Adicione a tag
<host-name></host-name>
em cada .service
*. service:
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<!-- Customize this to get a different name for your server in the Finder. -->
<name replace-wildcards="yes">MyHostname</name>
<service>
<type>_device-info._tcp</type>
<host-name>myhostname.mydomain.com</host-name>
<port>0</port>
<!-- Customize this to get a different icon in the Finder. -->
<txt-record>model=RackMac</txt-record>
</service>
<service>
<type>_afpovertcp._tcp</type>
<host-name>myhostname.mydomain.com</host-name>
<port>548</port>
</service>
</service-group>
Reinicie: /etc/init.d/avahi restart