diff --git a/lib/query.js b/lib/query.js index 04ecaab..b42d865 100644 --- a/lib/query.js +++ b/lib/query.js @@ -72,8 +72,10 @@ Query.prototype.encode = function encode() { flags: this._flags, qdCount: this._qdCount, anCount: this._anCount, - nsCount: this._nsCount, - srCount: this._srCount + // nsCount: this._nsCount, + // srCount: this._srCount + nsCount: this._authority ? this._authority.length : 0, + srCount: this._additional ? this._additional.length : 0 }, question: this._question, answers: this._answers,