> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.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` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

キャッシュされた DNS レコードに関する情報が含まれています。

<div id="columns">
  ## カラム
</div>

* `hostname` ([String](/ja/reference/data-types)) — ホスト名。
* `ip_address` ([String](/ja/reference/data-types)) — IPアドレス。
* `ip_family` ([Enum8('IPv4' = 0, 'IPv6' = 1, 'UNIX\_LOCAL' = 2)](/ja/reference/data-types)) — IPアドレスファミリー。
* `cached_at` ([DateTime](/ja/reference/data-types)) — レコードがキャッシュされた時刻のタイムスタンプ。

<div id="example">
  ## 例
</div>

```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 |

<div id="see-also">
  ## 関連項目
</div>

* [disable\_internal\_dns\_cache 設定](/ja/reference/settings/server-settings/settings#disable_internal_dns_cache)
* [dns\_cache\_max\_entries 設定](/ja/reference/settings/server-settings/settings#dns_cache_max_entries)
* [dns\_cache\_update\_period 設定](/ja/reference/settings/server-settings/settings#dns_cache_update_period)
* [dns\_max\_consecutive\_failures 設定](/ja/reference/settings/server-settings/settings#dns_max_consecutive_failures)
