How to list all DNS records/entries for a domain name in Linux?

How to list all DNS records/entries for a domain name in Linux?



If you are trying to find out what exact DNS records your DNS server (or someone else’s DNS servers) are publishing for a specific domain, run the following under any Linux/UNIX system with the ‘host’ command installed:

host -al [domain.com] [nameserver.domain.com]

Where [domain.com] is the domain you wish to query in regards to, and [nameserver.domain.com] is the name server you wish to query.

 


 


Categories