<div dir="ltr"><div dir="ltr"><div dir="auto"><div dir="ltr">Hi Patrick,<div><br></div><div>Yup, it would be like "ssh-hostname" because there would be service name conflicts, say if there are 100 systems in the network publishing the service with the same name, there would be name conflicts for 100 times and finally, the service would be published as "ssh#101" to the network.</div><div><br></div><div>To avoid this, if we append the service name with the hostname which will be unique, we make sure that the service name would also be unique thus resolving the service name conflicts.</div><div><br></div><div>Example would be:</div><div><br></div><div dir="auto"> <name>ssh-(hostname)</name></div><div dir="auto"> <span style="font-family:sans-serif"><service></span></div><div dir="auto"><span style="font-family:sans-serif"> ....</span></div><div dir="auto"><span style="font-family:sans-serif"> </service></span><br></div><div dir="auto"><br></div><div dir="auto">Else, one other solution would be to push a patch for avahi, to stop looking for service name conflicts (unique service name).</div><div>Your thoughts on the same, Patrick?</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 2, 2020 at 9:28 PM Patrick Williams <<a href="mailto:patrick@stwcx.xyz" rel="noreferrer" target="_blank">patrick@stwcx.xyz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Sep 02, 2020 at 10:38:55AM +0530, Asmitha Karunanithi wrote:<br>
> Hi All,<br>
> <br>
> Hope all are doing good.<br>
> <br>
> When I was trying to do 'avahi-browse', I was able to see service name<br>
> conflicts (since the service with the same name would be published by<br>
> various clients in the network and I could see <servicename>#100, after<br>
> trying for 99 times).<br>
> <br>
> To resolve this, the idea is to append the hostname of the client with the<br>
> service name (whenever the service is being published), given that the<br>
> hostname will always be unique in my case.<br>
> <br>
> So, the service file would look like: (example.service)<br>
> <br>
> <service-group><br>
> <br>
> <name>example-hostname</name><br>
> <br>
> <service><br>
> <br>
> <type>...</type><br>
> <br>
> <port>...</port><br>
> <br>
> </service><br>
> <br>
> </service-group><br>
<br>
Can you give an example of what a service name would be in this context?<br>
Is it like 'ssh'? I don't think you should be advertising services as<br>
'ssh-hostname' in that case.<br>
<br>
-- <br>
Patrick Williams<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr">Thanks & Regards,<div>Asmitha Karunanithi</div></div></div></div></div>
</div>