DT-GETQUERY(1)
π DT-GETQUERY π
okay bestie, so this is the manual page for dt-getquery, a lil User Command that lives in section 1 of the manual. she's a command-line test program for the val_res_query() function. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
dt-getquery β a command-line test program for the val_res_query() function, no cap π
πΈ SYNOPSIS πΈ
dt-getquery [options] name
π¦ DESCRIPTION π¦
so basically, this utility is a command-line wrapper around the val_res_query() function. it takes the arguments you gave it on the command line, hands them straight to val_res_query(), and then shows you what came back as a DNS-style response. iconic behavior tbh β¨
it also shows you the validation status value for the records that came back for your query. like, it's not just "here's your answer", it's "here's your answer AND here's whether we trust it". main character energy fr fr π
now the exit status, and listen closely because this part is literally the whole point:
- 1 β the answer received is trusted
- 2 β the answer received is validated
- -1 β that's an error bestie π
- 0 β the result was neither trusted nor validated, so, neutral. not slaying, not failing. just existing π
the trusted and validated status values come from the val_istrusted() and val_isvalidated() functions in libval(3). iykyk π
π OPTIONS π
-t<type>β perform the query for the given DNS record type. tell her what you're looking for and she'll go get it π¦-o,--output=*<debug-level>*:*<dest-type>*[:*<dest-options>`] β the output config situation, and okay there's layers here so stay with me:<debug-level>is1-7, corresponding to syslog levelsALERT-DEBUG<dest-type>is one offile,net,syslog,stderr,stdout<dest-options>depends on<dest-type>:file:<file-name>(opened in append mode)net[:<host-name>:<host-port>](127.0.0.1:1053syslog[:facility](0-23 (default 1 USER))
-h,--helpβ display the help and exit. the classic. the "just tell me what to do" button π
π§ PRE-REQUISITES π§
libval
(yeah you need her. she's the whole foundation. no libval, no vibes π)
β COPYRIGHT β
Copyright 2005-2013 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
π AUTHORS π
Abhijit Hayatnagarkar, Suresh Krishnaswamy, Robert Story, Michael Baer
(legends, all four of them, we stan π«Ά)
π₯ SEE ALSO π₯
and that's the page!! this one was generated by perl v5.14.3 and dated 2013-02-27, so shoutout to the perl era for bringing us this absolute gem πβ¨ go run your queries bestie, and remember: trusted is 1, validated is 2, error is -1, and everything else is just 0 π
π¦ where this page comes from
- arch rolling: dnssec-tools 2.2.3-16 Β· BSD
- fedora 43: dnssec-tools 2.2.3-30.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: dnssec-tools 2.2.3-32.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms