tjfontaine / node-dns

Replacement dns module in pure javascript for node.js
MIT License
585 stars 154 forks source link

Add ability to set 'additional' section for request packets #76

Open advait opened 10 years ago

advait commented 10 years ago

RFC 6891 - EDNS Section 6.1.1 indicates the following:

An OPT pseudo-RR (sometimes called a meta-RR) MAY be added to the additional data section of a request.

Can we add the ability to send up RRs in the additional data section of a request? Currently, we're only sending up the question section. See pending.js line 128

I'll be happy to spin up a pull request if @tjfontaine is supportive!

coolaj86 commented 8 years ago

I see that the additional section is being sent as-is.

However, I haven't been able to figure out how to send an OPT version 0 as required by edns.

Did you figure it out?