[avahi] synchronous service discovery

Mihai Ibanescu misa+avahi at redhat.com
Thu May 4 16:23:04 PDT 2006


On Fri, May 05, 2006 at 12:47:12AM +0200, Lennart Poettering wrote:
> On Thu, 04.05.06 17:26, Mihai Ibanescu (misa+avahi at redhat.com) wrote:
> 
> Hi!
> 
> > Thanks for the detailed response. Since (for now) I am only using unicast DNS,
> > I'll probably just follow your advice. I didn't want to add the complexity of
> > (and dependency upon) an event loop when simple DNS lookups for PTR records
> > were enough.
> > 
> > As I found out, there are no good DNS libaries for python that are in
> > widespread use, as far as I can tell, and it's yet another dependency
> > - that's why I was looking for something within avahi.
> 
> I don't think Avahi makes such a good unicast DNS client. In fact it
> is a very limited implementation of a DNS client. Just good enough for
> the few things required to make DNS-SD over unicast DNS possible. Some
> things you might find in a proper DNS client lib are not supported by
> Avahi. Most notably non-recursive lookups come to my mind here.
> 
> If you need just unicast DNS, have you checked out the standard libc
> resolver API? (See resolver(3) for more information)

I did, some time ago, and I think I got scared of how complicated it is to
extract the results. I'll have a look again.

Misa


More information about the avahi mailing list