Copied to clipboard

dig

Dig is a network tool that can be used to query DNS records on a DNS server, including host addresses, mail exchange records, and domain name server records.

Example

  • Query the IP address of a domain:
    dig example.com
    
  • Query the MX record of a specific host:
    dig example.com MX
    
  • Query the TXT record of a specific host:
    dig example.com TXT
    
  • Query the IPv6 address of a specific host:
    dig example.com AAAA
    
  • Query the NS record of a specific host:
    dig example.com NS
    
  • Query the SOA record of a specific host:
    dig example.com SOA