diff --git a/src/Neo4j/Neo4jConnectionPool.php b/src/Neo4j/Neo4jConnectionPool.php index b416dd01..78a4b7aa 100644 --- a/src/Neo4j/Neo4jConnectionPool.php +++ b/src/Neo4j/Neo4jConnectionPool.php @@ -123,7 +123,10 @@ public function acquire(SessionConfiguration $config): Generator $latestError = null; if ($table == null) { - $addresses = $this->resolver->getAddresses((string) $this->data->getUri()); + $addresses = (function () { + yield gethostbyname($this->data->getUri()->getHost()); + yield from $this->resolver->getAddresses($this->data->getUri()->getHost()); + })(); foreach ($addresses as $address) { $triedAddresses[] = $address; $pool = $this->createOrGetPool(Uri::create($address));