dns-parser icon indicating copy to clipboard operation
dns-parser copied to clipboard

allow zero length TXT reccords

Open icewind1991 opened this issue 6 years ago • 1 comments

When working with mdns I got some responses with zero length TXT records

icewind1991 avatar Dec 08 '19 22:12 icewind1991

For reference, RFC 6763 Page 11, section 6, paragraph 2 says that it is ok to have an empty TXT record with a single zero byte. The zero byte delimits the end of the keys. A TXT record with zero length is technically not correct but we should probably allow it to be compatible since the purpose is identical.

pusateri avatar Dec 09 '19 00:12 pusateri