Forrest logo
tool overview
On this page you find all important commands for the CLI tool kdig. If the command you are looking for is missing please ask our AI.

kdig

kdig is a command line tool that is used to perform DNS (Domain Name System) queries. It is known for its advanced features and flexibility. The tool is primarily designed for debugging and troubleshooting DNS related issues. It is a part of the knot-dns-utils package, which is a collection of command line tools to work with DNS. kdig provides a wide range of query types such as A, AAAA, CNAME, MX, NS, PTR, TXT, and more. It supports both IPv4 and IPv6 addresses. The tool allows you to specify which DNS server to query, making it useful for testing different DNS configurations. kdig provides detailed output, displaying the response time, flags, record data, and other relevant information. It also supports DNSSEC (DNS Security Extensions) validation and can display the chain of trust for a specific domain. kdig is widely used by network administrators, DNS operators, and developers who need to troubleshoot DNS issues at a command line level.

List of commands for kdig:

  • kdig:tldr:07c9a kdig: Specify a specific DNS server to query (e.g. Google DNS).
    $ kdig ${example-com} @${8-8-8-8}
    try on your machine
    explain this command
  • kdig:tldr:a1fff kdig: Lookup the IP(s) associated with a hostname (A records) using DNS over HTTPS (DoH).
    $ kdig -d @${1-1-1-1} +https +tls-hostname=${1dot1dot1dot1-cloudflare-dns-com} ${example-com}
    try on your machine
    explain this command
  • kdig:tldr:d1c4a kdig: Lookup the IP(s) associated with a hostname (A records) using DNS over TLS (DoT).
    $ kdig -d @${8-8-8-8} +tls-ca +tls-host=${dns-google} ${example-com}
    try on your machine
    explain this command
  • kdig:tldr:e2f0c kdig: Lookup the IP(s) associated with a hostname (A records).
    $ kdig ${example-com}
    try on your machine
    explain this command
  • kdig:tldr:f1ba4 kdig: Query a specific DNS record type associated with a given domain name.
    $ kdig ${example-com} ${select}
    try on your machine
    explain this command
tool overview