> ## 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` 함수를 사용해야 합니다. 자세한 내용은 [여기](/ko/reference/system-tables/overview#system-tables-in-clickhouse-cloud)를 참조하십시오.
</Info>

## 설명

캐시된 DNS 레코드 정보를 포함합니다.

## 컬럼

* `hostname` ([String](/ko/reference/data-types/string)) — 호스트명.
* `ip_address` ([String](/ko/reference/data-types/string)) — IP 주소.
* `ip_family` ([Enum8('IPv4' = 0, 'IPv6' = 1, 'UNIX\_LOCAL' = 2)](/ko/reference/data-types/enum)) — IP 주소 유형.
* `cached_at` ([DateTime](/ko/reference/data-types/datetime)) — 레코드가 캐시된 시각.

## 예시

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

| 호스트명 | 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 설정](/ko/reference/settings/server-settings/settings/disable#disable_internal_dns_cache)
* [dns\_cache\_max\_entries 설정](/ko/reference/settings/server-settings/settings/dns-cache#dns_cache_max_entries)
* [dns\_cache\_update\_period 설정](/ko/reference/settings/server-settings/settings/dns-cache#dns_cache_update_period)
* [dns\_max\_consecutive\_failures 설정](/ko/reference/settings/server-settings/settings/other#dns_max_consecutive_failures)
