1SDIG(1) PowerDNS Authoritative Server SDIG(1)
2
3
4
6 sdig - Perform a DNS query and show the results
7
9 sdig IP-ADDRESS-OR-DOH-URL PORT QNAME QTYPE [OPTION]
10
12 sdig sends a DNS query to IP-ADDRESS-OR-DOH-URL on port PORT and dis‐
13 plays the answer in a formatted way. If the address starts with an h,
14 it is assumed to be a DoH endpoint, and PORT is ignored. If qname and
15 qtype are both - and tcp is used, multiple lines are read from stdin,
16 where each line contains a qname and a type. If the address is stdin,
17 a DNS packet is read from stdin instead of from the network, and PORT
18 is ignored. All input is literal and case sensitive. Queries need
19 option recurse to expect a resource record reply if the query target is
20 not known to be the authoritative server for that record.
21
23 These options can be added to the commandline in any order.
24
25 class CLASSNUM
26 Send the query in the numbered class (like 3 for CHAOS) instead
27 of the default 1 (for IN).
28
29 dnssec Set the DO bit to request DNSSEC information.
30
31 ednssubnet SUBNET
32 Send SUBNET in the edns-client-subnet option. If this option is
33 not set, no edns-client-subnet option is set in the query.
34
35 hidesoadetails
36 Don't show the SOA serial in the response.
37
38 hidettl
39 Replace TTLs with [ttl] in the response.
40
41 proxy TCP? SRC DST
42 Wrap query in PROXYv2 protocol with these parameters. The first
43 parameter accepts 0 for UDP and 1 for TCP. The second and third
44 take IP addresses and port.
45
46 recurse
47 Set the RD bit in the question.
48
49 showflags
50 Show the NSEC3 flags in the response (they are hidden by
51 default).
52
53 tcp Use TCP instead of UDP to send the query.
54
55 xpf XPFCODE XPFVERSION XPFPROTO XPFSRC XPFDST
56 Send an XPF additional with these parameters.
57
59 Simple queries to local resolvers
60 sdig 127.0.0.1 53 example.com AAAA recurse sdig ::1 53 exam‐
61 ple.com A recurse
62
63 Query to a DNS-over-HTTPS server requesting dnssec and recursion
64 sdig https://dns.example.net/dns-query 443 example.com A dnssec
65 recurse
66
68 PowerDNS.COM BV
69
71 2001-2019, PowerDNS.COM BV
72
73
74
75
76 Feb 06, 2021 SDIG(1)