Prevent name compression on some RR types?

RFC 6742, section 2.4.1.2, says:

A sender MUST NOT use DNS name compression on the FQDN field when
transmitting an LP RR.

I do not see how to implement this with NSD 3. When I call
zadd_rdata_domain() in zparser.y, there is apparently no option to
register in the compiled zone database the fact that this must not be
compressed. As a result, the name is compressed, violating the RFC.

Such a rule seems to have been present only for DNSSEC-related RR
types until now. These DNSSEC RR types have a special handling in the
name server but I find nothing for other types.

RFC 6742, section 2.4.1.2, says:

A sender MUST NOT use DNS name compression on the FQDN field when
transmitting an LP RR.

I do not see how to implement this with NSD 3. When I call
zadd_rdata_domain() in zparser.y, there is apparently no option to
register in the compiled zone database the fact that this must not be
compressed. As a result, the name is compressed, violating the RFC.

There is: RDATA formats in NSD are registered in dns.c. There is a table
of RRs, describing each RDATA formats. For LP, this would be:

{ RDATA_WF_SHORT, RDATA_WF_UNCOMPRESSED_DNAME }
{ RDATA_ZF_SHORT, RDATA_ZF_DNAME }

Such a rule seems to have been present only for DNSSEC-related RR
types until now. These DNSSEC RR types have a special handling in the
name server but I find nothing for other types.

This new RR type is perfectly following RFC 3597, Handling of Unknown
DNS RR Types:

   Future specifications for new RR types that contain domain names
   within their RDATA MUST NOT allow the use of name compression for
   those names, and SHOULD explicitly state that the embedded domain
   names MUST NOT be compressed.

Best regards,
  Matthijs

In fact, we implemented it and these ILNP RR types will be supported by
the next NSD release (and also by the next ldns release).

Best regards,
  Matthijs

a message of 84 lines which said:

There is: RDATA formats in NSD are registered in dns.c. There is a table
of RRs, describing each RDATA formats. For LP, this would be:

{ RDATA_WF_SHORT, RDATA_WF_UNCOMPRESSED_DNAME }

Thanks, I missed this important flag. Now, I get it and it works, the
names in the response packet are no longer compressed.