Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

Commit 363bb12

Browse files
committed
use search path from platform when resolving names with resolve*
1 parent 90f9325 commit 363bb12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/client.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,18 @@ Resolve.prototype._preStart = function() {
291291
};
292292

293293
Resolve.prototype._shouldContinue = function() {
294-
debug('resolve should continue', this._server_list.length, this._domain);
295-
return this._server_list.length;
294+
debug('resolve should continue', this._server_list.length, this._search_path.length, this._domain);
295+
return this._server_list.length && this._search_path.length;
296296
};
297297

298298
Resolve.prototype._nextQuestion = function() {
299299
debug('resolve next question', this._domain);
300+
this._buildQuestion([this._domain, this._search_path.pop()].join('.'));
300301
};
301302

302303
Resolve.prototype.start = function() {
303304
if (!this._started) {
305+
this._search_path = platform.search_path[0].slice(0);
304306
this._preStart();
305307
}
306308

0 commit comments

Comments
 (0)