> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-parallel-read-in-order-multi-part.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Системная таблица со сведениями о кэшированных DNS-записях.

# system.dns_cache

<Info>
  **Запросы в ClickHouse Cloud**

  Данные в этой системной таблице хранятся локально на каждом узле ClickHouse Cloud. Поэтому, чтобы получить полное представление обо всех данных, требуется функция `clusterAllReplicas`. Дополнительные сведения см. [здесь](/ru/reference/system-tables/overview#system-tables-in-clickhouse-cloud).
</Info>

## Описание

Содержит сведения о кэшированных DNS-записях.

## Столбцы

* `hostname` ([String](/ru/reference/data-types/string)) — Имя хоста.
* `ip_address` ([String](/ru/reference/data-types/string)) — IP-адрес.
* `ip_family` ([Enum8('IPv4' = 0, 'IPv6' = 1, 'UNIX\_LOCAL' = 2)](/ru/reference/data-types/enum)) — Семейство IP-адресов.
* `cached_at` ([DateTime](/ru/reference/data-types/datetime)) — Временная метка кэширования записи.

## Пример

```sql title="Query" theme={null}
SELECT * FROM system.dns_cache;
```

| hostname | ip\_address | ip\_family | cached\_at |
| :- | :- | :- | :- |
| localhost | ::1 | IPv6 | 2024-02-11 17:04:40 |
| localhost | 127.0.0.1 | IPv4 | 2024-02-11 17:04:40 |

## См. также

* [параметр disable\_internal\_dns\_cache](/ru/reference/settings/server-settings/settings/disable#disable_internal_dns_cache)
* [параметр dns\_cache\_max\_entries](/ru/reference/settings/server-settings/settings/dns-cache#dns_cache_max_entries)
* [параметр dns\_cache\_update\_period](/ru/reference/settings/server-settings/settings/dns-cache#dns_cache_update_period)
* [параметр dns\_max\_consecutive\_failures](/ru/reference/settings/server-settings/settings/other#dns_max_consecutive_failures)
