Adding a RR type in nsd

I was thinking about adding a few RR types to nsd and I was wondering:

1) Is there a HOWTO-HACK somewhere? Apparently, I need to modify
dns.h, dns.c (to describe the RR type) and of course zparser.y (to
describe the presentation format) and that's all? It seems too simple
:slight_smile:

2) Should I work on NSD 3 (then possibly having to do it again in 4),
NSD 4 (not yet ready) or both?

Hi Stephane,

I was thinking about adding a few RR types to nsd and I was
wondering:

1) Is there a HOWTO-HACK somewhere? Apparently, I need to modify
dns.h, dns.c (to describe the RR type) and of course zparser.y (to
describe the presentation format) and that's all? It seems too
simple :slight_smile:

No, there is no howto for new RRtypes. Perhaps because it is too
simple (if you don't do special processing RRtypes).

Looking at the TLSA commit: edited dns.{c,h}, zparser.y and
documentation. So yeah, that's all:)

2) Should I work on NSD 3 (then possibly having to do it again in
4), NSD 4 (not yet ready) or both?

The code should be the same for 3 and 4.

Best regards,
  Matthijs

Hi Stephane,

1) Is there a HOWTO-HACK somewhere? Apparently, I need to modify
dns.h, dns.c (to describe the RR type) and of course zparser.y (to
describe the presentation format) and that's all? It seems too simple
:slight_smile:

A little late perhaps and you don't seem to need it but I'll post it
anyway. When I started working at NLnet Labs a couple of
years ago and first touching NSD code I wrote some text about
HOWTO-HACK-NEW-RRTYPE which I found useful at the time.

Regards,
Yuri Schaeffer

Adding a new RR type

That was interesting, thank you.

The RANDINT type gives the client a random 32 bit integer V.

Hmm. Maybe RANDIP would be nice to have... :wink: [sorry: couldn't resist]

        -JP