Check resource records
Check resource records
You can check from which DNS servers the domain resource records are given from, and you can also see all the records of the domain.
-
Open the CLI.
-
Install the
dig
utility as part of thednsutils
package:sudo apt-get install dnsutils
-
Check which NS servers the domain is delegated to:
dig <example.com> NS
Specify
<example.com>
as the domain name. -
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>
— The NS server you got in step 3;<type>
— record type, e.g,A
for A record. To display information about all records in the domain, specifyany
.
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.