Skip to main content
Check resource records
Last update:

Check resource records

You can check from which DNS servers the domain's resource records are given from, as well as view all domain records.

  1. Open the CLI.

  2. Install the utility dig as part of a package dnsutils:

    sudo apt-get install dnsutils
  3. Check which NS servers the domain is delegated to:

    dig <example.com> NS

    Specify <example.com> — domain name.

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

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

    Specify:

    • <ns_server> — NS server that you got in step 3;
    • <type> — record type, e.g., A for the A-record. To display information about all records in the domain, specify any.

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