[avahi] Resolve multiple IP4 Addresses

Lennart Poettering lennart at poettering.net
Thu May 7 07:56:50 PDT 2009

On Thu, 07.05.09 16:09, Daniel Wynne (daniel.wynne at mobotix.com) wrote:

> ok...
> ...this is the call I make in the ServiceResolverCallback:
> ...
> avahi_record_browser_new (
> 			client,

You should specify the same interface you discovered via the service browser/resolver.


You should specify the same protocol you discovered via the service browser/resolver.

> 			name,

You should specify the same host name you found via the service resolver.


HINFO? I thought you were interested in the address records (i.e. A or AAAA).


Leave that to the implementation, pass 0 here.

> The Callback of the RecordBrowser always goes into state "CACHE


Hey, read the docs, that's why I wrote them. They might not be
complete, but they do explain what CACHE EXHAUSTED means.

You'll get a couple of callbacks. If you don't care about CACHE
EXHAUSTED then ignore it.

> In which format does "name" has to be? A little more documentation would
> be helpful ;-)

Read the DNS-SD spec.

This is an API to lookup low-level RRs. The parameters are hence in
the format those low-level RRs use. i.e. fqdn.


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the avahi mailing list