<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">test on %h</name>
<service>
<type>_test._tcp</type>
<port>80</port>
</service>
</service-group>
说明:配置自定义服务:test ,则在service配置中把type配置为:_test._tcp
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">test on %h</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
</service>
</service-group>