Skip to content

Commit

Permalink
Allow resolving dotless hosts without search list (#94)
Browse files Browse the repository at this point in the history
Fixes #93.
  • Loading branch information
Guuzen authored and kelunik committed Nov 28, 2019
1 parent 493d014 commit 9d7e57f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Rfc1035StubResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ public function resolve(string $name, int $typeRestriction = null): Promise
: [new Record('127.0.0.1', Record::A, null)];
}

if (!$dots && \count($this->config->getSearchList()) === 0) {
throw new DnsException("Giving up resolution of '{$name}', unknown host");
}

$searchList = [null];
if (!$trailingDot && $dots < $this->config->getNdots()) {
$searchList = \array_merge($this->config->getSearchList(), $searchList);
Expand Down

0 comments on commit 9d7e57f

Please sign in to comment.