---
title: "Check resource records"
sidebar_label: "Check records"
description: "How to check a resource record in the NS server cache"
sidebar_position: 3
---

import Formbricks from '@theme/MDXComponents/Formbricks'

# Check resource records

You can check which DNS servers provide domain resource records and view all domain records.

1. Open the CLI.

2. Install the `dig` utility as part of the `dnsutils`:

   ```sh
   sudo apt-get install dnsutils
   ```

3. Check which NS servers the domain is delegated to:

   ```sh
   dig <example.com> NS
   ```

   Specify `<example.com>` — the domain name.

4. Request record data from the NS server. If the domain is delegated to several NS servers, repeat the request for each server:

   ```sh
   dig <ns_server> <example.com> <type>
   ```

   Specify:

   * `<ns_server>` — the NS server obtained in step 3;
   * `<type>` — the record type, for example, `A` for an A record. To display information about all domain records, specify `any`.

   The response will contain the value of the record and its TTL. TTL is the time in seconds during which a resource record in the NS server cache is considered up to date and does not need to be re-cached.

<Formbricks />
