<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I am not sure I understand what you mean by the difference between a global and a local service.<br><br>In our project we often want to sandbox a virtual network inside our larger lab network. We found the use of the domain field useful in this regard. I can set up three services that need to see each other and run them all on the foo.local domain (note the .local suffix is needed). The services publish and discover using this domain value (We use a MY_AVAHI_DOMAIN=foo.local environment variable to enable this sandboxing.<br><br>Also, we have some multihome boxes that have two or more physical ethernet ports connecting them to multiple networks. We use the avahi config file to disable publish/discovery on the interfaces not relevent to to service-to-service communication.<br><br>Hope this helps give you some ideas,<br>- Doug<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: meme037@hotmail.com<br>To: avahi@lists.freedesktop.org<br>Date: Thu, 23 Feb 2012 17:21:24 +0100<br>Subject: [avahi] Publish services in local<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<div dir="ltr">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style><div dir="ltr">Hi,<br><br>I actually work for a project where we decide to use avahi to discover services in all our sytem...<br>We want to publish global services and also local services.<br>We use avahi_entry_group_add_service and avahi_entry_group_commit methods. This works well for global services: all machines of our network receive notifications of service publication. But we do not know how to publish only on local... We tried by modifying AvahiIfIndex parameter (value 1 for lo interface): this did not work (no notification received on local machine). We tried by modifying AvahiPublishFlags parameter (value AVAHI_PUBLISH_NO_ANNOUNCE): we had an error with avahi_entry_group_add_service "Failed to add _service1._tcp service: Invalid flags"<br>Can we do this with avahi?<br><br>Thanks for your answer,<br>regards<br></div>                                            </div>
<br>_______________________________________________
avahi mailing list
avahi@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/avahi</div>                                            </div></body>
</html>