Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Request creation takes an object with the following fields
* `type` -- a string indicating `udp` or `tcp` (optional, default `udp`)
You do not need to indicate ipv4 or ipv6, the backend will handle that
- a string ip address
* `additional` -- an array of Additional Resource Records (optional)
* `timeout` -- a number in milliseconds indicating how long to wait for the
request to finish. (optional, default 4000)
* `try_edns` -- a boolean indicating whether to use an `EDNSPacket` (optional)
Expand Down
1 change: 1 addition & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var Request = exports.Request = function(opts) {
if (!(this instanceof Request)) return new Request(opts);

this.question = opts.question;
this.additional = opts.additional || [];
this.server = opts.server;

if (typeof(this.server) === 'string' || this.server instanceof String)
Expand Down
1 change: 1 addition & 0 deletions lib/pending.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ SocketQueue.prototype._dequeue = function() {
}

packet.question.push(req.question);
packet.additional.push.apply(packet.additional, req.additional);
packet.send();

this._ref();
Expand Down