mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 02:53:38 +00:00
8b314a3ac8
* system.dns_cache table WIP * system.dns_cache table * rollback unexpected contrib changes * rollback unexpected changes * add docs * code style fixes * optimize dns cache exporting * stateful test for system.dns_cache table * stateful test for system.dns_cache table * cr fixes * stateful test for system.dns_cache table * stateful test for system.dns_cache table * implement system.dns_cache table * system.dns_cache test * system.dns_cache fix docs * system.dns_cache prettify * dns_cache_max_size settings * fix system.dns_cache test * Update dns_cache.md * fix doc Co-authored-by: pufit <pufit@clickhouse.com> --------- Co-authored-by: pufit <pufit@clickhouse.com>
1.3 KiB
1.3 KiB
slug |
---|
/en/operations/system-tables/dns_cache |
dns_cache
Contains information about cached DNS records.
Columns:
hostname
(String) — cached hostnameip_address
(String) — ip address for the hostnameip_family
(Enum) — family of the ip address, possible values:- 'IPv4'
- 'IPv6'
- 'UNIX_LOCAL'
cached_at
(DateTime) - when the record was cached
Example
Query:
SELECT * FROM system.dns_cache;
Result:
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 |
See also