[Yandex Cloud documentation](../../../index.md) > [Yandex MPP Analytics for PostgreSQL](../../index.md) > [Step-by-step guides](../index.md) > [Connection](index.md) > FQDNs of hosts

# FQDNs of Yandex MPP Analytics for PostgreSQL hosts

To connect to a master host, you need its [FQDN](../../concepts/network.md#hostname). You can use the FQDN of a particular host in the cluster or a [special FQDN](#fqdn-master) always pointing to the primary master host. When connecting via _psql_ or using a JDBC connector, you can specify two master hosts at once.

Host FQDN example:

```text
rc1a-goh2a9tr********.mdb.yandexcloud.net
```

## Getting a host FQDN {#get-fqdn}

There are several ways to get a Yandex MPP Analytics for PostgreSQL host's FQDN:

* Look up the FQDN in the management console:

    1. Navigate to the cluster page.
    1. Navigate to **Hosts**.
    1. Copy the **Host FQDN** column value.

* In the [management console](https://console.yandex.cloud), copy the cluster connection command (it contains the host’s FQDN). To get this command, navigate to the cluster page and click **Connect**.

* [Request a list of cluster hosts](../cluster-list.md#get-hosts) using the CLI or API.

## Special primary master FQDN {#fqdn-master}

If you do not want to manually connect to another master host when the current one becomes unavailable, use a special FQDN in `c-<cluster_ID>.rw.mdb.yandexcloud.net` format. It always points to the primary master host in the cluster. Connection to this FQDN is permitted, with both read and write operations allowed.

A special FQDN may temporarily point to an unavailable master host (for up to 10 minutes). This is because it takes time to update DNS records for special FQDNs. If your request returns an error, repeat it later.

Here is an example of connecting to a primary master host in a cluster with the `cat0adul1fj0********` ID:

```bash
psql "host=c-cat0adul1fj0********.rw.mdb.yandexcloud.net \
      port=6432 \
      sslmode=verify-full \
      dbname=<DB_name> \
      user=<username>"
```

{% note warning %}

Use master host special FQDN-based connections only for processes that can cope with database being unavailable for writing for up to 10 minutes.

{% endnote %}