LinuxCommandLibrary

kdig

advanced DNS lookup utility from the Knot DNS project

TLDR

Query A record

$ kdig [example.com] A
copy
Query specific server
$ kdig [example.com] @[8.8.8.8]
copy
Query using TCP
$ kdig +tcp [example.com]
copy
Query using TLS (DoT)
$ kdig +tls [example.com] @[1.1.1.1]
copy
Perform zone transfer
$ kdig [example.com] AXFR @[ns1.example.com]
copy
Query with DNSSEC validation
$ kdig +dnssec [example.com]
copy
Reverse DNS lookup
$ kdig -x [192.0.2.1]
copy

SYNOPSIS

kdig [common-settings] [query...]

DESCRIPTION

kdig is an advanced DNS lookup utility from the Knot DNS project. It supports modern DNS protocols including DNS over TLS (DoT) and DNS over HTTPS (DoH). Provides more features than traditional dig for DNS troubleshooting and testing.

PARAMETERS

@server

Nameserver to query.
-t type
Query type (A, AAAA, MX, NS, etc.).
-x address
Reverse lookup for IP address.
+tcp
Use TCP instead of UDP.
+tls
Use TLS (DNS over TLS).
+https
Use HTTPS (DNS over HTTPS).
+dnssec
Request DNSSEC records.
+short
Display short output.

SEE ALSO

dig(1), host(1), nslookup(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community