[avahi] Problem resolving service without TXT records

Lennart Poettering lennart at poettering.net
Fri May 5 12:34:42 PDT 2006


On Fri, 05.05.06 15:23, Mihai Ibanescu (misa+avahi at redhat.com) wrote:

> Hello,
> 
> I noticed more people reported this on various web pages, is this
> known? If I

"Various web pages"? Where exactly?

> try to resolve (using unicast DNS) a service that does not have a TXT record,
> it will fail. It seems to need an empty TXT record at the very
> least.

An SRV record without a matching TXT record is not a valid DNS-SD
service, hence Avahi will treat this as an error. If you don't need
the TXT record, than set it a single empty string.

Avahi can be used to resolve non-DNS-SD SRV records: just pass
AVAHI_LOOKUP_NO_TXT in the flags argument and pass NULL as service
name and use the normal service resolver.

Lennart

-- 
Lennart Poettering; lennart [at] poettering [dot] net
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/


More information about the avahi mailing list