dt-getquery [options] name
DESCRIPTIONThis utility is a command-line wrapper around the val_res_query() function. It invokes the val_res_query() function with the given command-line arguments and displays the returned data as a DNS-style response. It also displays the validation status value for the records returned for the query.
The exit status for this program is 1 if the answer received is trusted, 2 if the answer received is validated, and -1 for an error. The program returns 0 if the result was neither trusted nor validated. The trusted and validated status values are obtained using the val_istrusted() and val_isvalidated() functions from libval(3).
- -t <type>
- Perform the query for the given DNS record type
- -o, --output=<debug-level>:<dest-type>[:<dest-options>]
<debug-level> is 1-7, corresponding to syslog levels ALERT-DEBUG
<dest-type> is one of file, net, syslog, stderr, stdout
<dest-options> depends on <dest-type>
file:<file-name> (opened in append mode)
syslog[:facility] (0-23 (default 1 USER))
- -h, --help
- Display the help and exit.