DT-GETHOST(1)
πΈ DT-GETHOST π
okay bestie, welcome to dt-gethost β it lives in the User Commands section of the manual, and it is literally the little command-line test bestie for the val_gethostbyname() family of functions. π
β¨ NAME β¨
dt-gethost β a command-line test program for the val_gethostbyname() (and related) functions π¦
π«Ά SYNOPSIS π«Ά
dt-gethost [options] name
π DESCRIPTION π
so basically, this utility is a command-line wrapper around the val_gethostbyname() (and related) functions. she's giving glorified test harness and honestly? iconic. π
what she does is call val_gethostbyname(), val_gethostbyname_r() and val_gethostbyname2() for whatever arguments you handed her on the command line, and then she shows you the returned hostent, the validation status value, and the value of the h_errno variable. the way that she just tells you everything β no cap, we love a transparent queen. π
now the exit status, because this is the part people always ask about:
1β the answer received is trusted π2β the answer received is validated π-1β there was an error π0β no validation was performed, or the result was neither trusted nor validated π
the trusted and validated status values come from the val_istrusted() and val_isvalidated() functions over in libval(3). iykyk. β¨
π₯ OPTIONS π₯
-r,--reentrantβ use the re-entrant query interface π§-f,--family=[AF_INET|AF_INET6]β use the specified address family for the query π-o,--output=<debug-level>:<dest-type>[:<dest-options>]β set up where the output goes, bestie. here's the breakdown:<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 π«‘
π PRE-REQUISITES π
libval
like. you need her. periodt. π
π 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 π
π SEE ALSO π
and that's the whole page, babe π¦ this one was rendered by perl v5.18.4 back on 2015-04-27 β so yeah, she's an elder but she still ate π β¨
π¦ 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