Questions tagged [avahi]

Avahi is a free zeroconf implementation - A service discovery protocol. It can be used to find services on a network and also to publish services to be found by other Zeroconf clients.

126 questions
1
vote
1 answer

Converting escaped characters to utf in Python

Is there an elegant way to convert "test\207\128" into "testπ" in python? My issue stems from using avahi-browse on Linux, which has a -p flag to output information in an easy to parse format. However the problem is that it outputs non alpha-numeric…
1
vote
1 answer

How Avahi dnsconfd works?

I see that avahi-dnsconfd achieve to handle dns request from the browser without being listed in /etc/resolv.conf. I think that it's part of the dns resolution spec to check whether or not localhost can answer the query first. The problem is that,…
amirouche
  • 7,682
  • 6
  • 40
  • 94
1
vote
0 answers

Incomplete type AvahiClient

I need to dynamically declare AvahiClient*. So for that I used AvahiClient *c = (AvahiClient*)malloc(sizeof(AvahiClient)) but this and all other methods to get size of AvahiClient gives error of the form incomplete type ‘AvahiClient’ {aka ‘struct…
mm12
  • 11
  • 2
1
vote
1 answer

Parsing avahi-browse result

I need to parse an avahi browse result for some information in PHP. I am NOT basing this on "parsable" Avahi browse (-p) as this seems more difficult to parse than the unparsable, unless I am mistaken. As I can limit the browse to certain types , I…
Mark
  • 39
  • 1
  • 6
1
vote
0 answers

gethostbyname works in bonjour, but not in avahi

I am finishing up the process of switching from bonjour to avahi in my embedded Linux 3.14. All is working fine,except from the issue of gethostbyname(). Mdns advertised devices are resolved by various avahi utilities (avahi-browse ,resolve,etc.)…
glrocks
  • 11
  • 2
1
vote
2 answers

Stopping the Avahi service and return a list of elements

Following this example I want to stop the service when I get all elements and return them in a list. To stop the infinite loop is to call gobject.MainLoop().quit(), but do not know when or where to call. Thanks
Manu Mora
  • 332
  • 1
  • 2
  • 13
1
vote
0 answers

Multiple Docker containers with Avahi daemons

I'm trying to set up a smart-home Raspberry Pi using Docker to isolate every element of the system. However, two of those Dockers use Avahi to broadcast themselves in the home network - one contains Homebridge, the other Shairport-Sync. After a lot…
Maciej Wilczyński
  • 379
  • 1
  • 5
  • 13
1
vote
1 answer

Enable mDNS within buildroot

I have a working buildroot build (2017.02.1). I need to add mDNS. Using the configuration menu I managed to add and build the first avahi auto ip option. When I add the mDNS and libdns_sd sub options the build fails (below). I have removed 'dbus'…
1
vote
0 answers

Control what services are published by Avahi?

I've configured a print server on Raspbian (Jessie) using CUPS, SAMBA and Avahi to publish a USB printer to iOS devices. It works fine except when it comes time to actually print, the printer isn't found. (even after selecting the printer in the…
1
vote
1 answer

avahi-daemon doesn't start (can't create runtime directory)

I am trying to start avahi-daemon but it responds with and error Failed to create runtime directory /opt/var/run/avahi-daemon/ That directory do exist. Even if I delete this folder and start avahi again it creates it but still keeps saying that…
yurzs
  • 81
  • 7
1
vote
1 answer

What does avahi-compat-libdns_sd do?

I have Bonjour (mDNSResponder - Linux version) up and running on a Ubuntu Box (Host A). I have managed to port Avahi to a new platform. As I see, ./mDNSNetMonitor is able to discover the service published by avahi on say different host, Host B…
Siddartha
  • 11
  • 1
  • 3
1
vote
0 answers

::avahi_client_new fails with error 'An unexpected D-Bus error occured'

I am using avahi for service advertisement and discovery. As we all know avahi needs dbus as well and hence dbus-1.6.8 library is also added. i am starting dbus-daemon and avahi-daemon at startup. both daemons are running, which i could see in…
1
vote
1 answer

zeroconf implementation on an embedded linux system

I have an embeeded system that I like to add zeroconf to it. The aim is: Auto assign an IP to itself if there is no dhcp available. It respond to mdns request and identify itself correctly. It responds to dns-ds and broadcast its capability…
mans
  • 17,104
  • 45
  • 172
  • 321
1
vote
2 answers

Avahi DNS Stack for iPhone?

I would like to know if we have an avahi api for iphone side? Alternatively, can we implement avahi protocol in iphone? The avahi API provides: avahi-core: an API for embedding a complete mDNS/DNS-SD stack into your software. This is…
sneha
  • 121
  • 1
  • 5
1
vote
0 answers

Use avahi4j zeroconf to discover multiple machines running the same service

I'm trying to use avahi4j zeroconf to find multiple hosts that offer the same service. When running a very simple test on my machine, I don't see any of the callbacks for new services (IServiceBrowserCallback) nor for service resolution…
jonderry
  • 23,013
  • 32
  • 104
  • 171
1 2 3
8 9