1
Vote

Exception when receiving mDNS message with CNAME records

description

I have a Linux client (running Avahi) with multiple CNAMEs defined. When I start this client it announces itself using mDNS. When this happens I see a number of System.Collections.Generic.KeyNotFoundException occurring (thrown in BackReferenceBinaryReader.Get) and sometimes some other exceptions.
 
The problem seems to be because the handling of the primary name field in the CNAME record. This should be handled as a domain name, but it is processed as a text string. The primary name in the first CNAME record is also referred to by other domain names as it is the first time it occurs. But it cannot be found, as it was not processed as a domain name, hence the KeyNotFoundException exception.

comments