hidettl
Replace TTLs with `[ttl]` in the response.
proxy *TCP?* *SRC* *DST*
- Wrap query in PROXYv2 protocol with these parameters.
+ Wrap query in PROXYv2 protocol with these parameters. The first parameter accepts 0 for UDP and 1 for TCP. The second and third take IP addresses and port.
recurse
Set the RD bit in the question.
showflags
StatBag S;
-bool hidettl = false;
+static bool hidettl = false;
-string ttl(uint32_t ttl)
+static string ttl(uint32_t ttl)
{
if (hidettl)
return "[ttl]";
return std::to_string(ttl);
}
-void usage()
+static void usage()
{
cerr << "sdig" << endl;
cerr << "Syntax: sdig IP-ADDRESS-OR-DOH-URL PORT QNAME QTYPE "
"[dnssec] [ednssubnet SUBNET/MASK] [hidesoadetails] [hidettl] "
"[recurse] [showflags] [tcp] [xpf XPFDATA] [class CLASSNUM] "
- "[proxy PROXYDATA]"
+ "[proxy UDP(0)/TCP(1) SOURCE-IP-ADDRESS-AND-PORT DESTINATION-IP-ADDRESS-AND-PORT]"
<< endl;
}