ClickHouse/docs/en/operations/system-tables/dns_cache.md
2024-02-29 02:32:13 +03:00

1.3 KiB

slug
/en/operations/system-tables/dns_cache

dns_cache

Contains information about cached DNS records.

Columns:

  • hostname (String) — cached hostname
  • ip_address (String) — ip address for the hostname
  • ip_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