[nsd-users] Prevent name compression on some RR types?

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Nov 20 12:31:54 UTC 2012


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

On 11/19/2012 10:34 AM, Matthijs Mekking wrote:
> On 11/17/2012 11:05 AM, Stephane Bortzmeyer wrote:
>> 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
> 
>>
>> _______________________________________________
>> nsd-users mailing list
>> nsd-users at NLnetLabs.nl
>> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>>
> 
> 
> 
> 
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20121120/75228002/attachment.bin>


More information about the nsd-users mailing list