[Yandex Cloud documentation](../../../index.md) > [All solutions](../../index.md) > [Managed Service for PostgreSQL](../index.md) > Resolving the `psql error could not translate host name to address nodename nor servname provided, or not known` error

# Resolving `psql: error: could not translate host name to address: nodename nor servname provided, or not known`



## Issue description {#issue-description}

You have no public access to a PostgreSQL cluster and get this error:
```
psql: error: could not translate host name to address: nodename nor servname provided, or not known
```

## Solution {#issue-resolution}

To fix this error, check whether public access to the PostgreSQL cluster hosts is enabled. A cluster host can be reached from outside Yandex Cloud [if you enabled public access while creating or reconfiguring that host](../../../managed-postgresql/concepts/network.md#public-access-to-a-host). If public access is disabled, [enable](../../../managed-postgresql/operations/hosts.md#update) it.

To learn how to connect to a database in a PostgreSQL cluster, see [this Managed Service for PostgreSQL guide](../../../managed-postgresql/operations/connect/index.md).