DT-GETADDR(1)

πŸ“¦ version 2.2.3, in arch rolling, fedora 43, fedora 44

πŸ’– DT-GETADDR β€” like, the whole vibe πŸ’–

okay bestie, welcome to the dt-getaddr era, a page from the User Commands chapter of the manual, and honestly? it's giving "tiny tool, huge job." let's get into it 🫢


✨ NAME ✨

dt-getaddr β€” a lil command-line test program for the val_getaddrinfo() function 🌸


πŸŽ€ SYNOPSIS πŸŽ€

dt-getaddr [options] <hostname|IPv4 address|IPv6 address>

like. that's it. that's the whole entrance. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this utility is literally just a command-line wrapper around the val_getaddrinfo() function, no cap. it invokes the val_getaddrinfo() operation for whatever command-line arguments you hand it, then shows you the return code that came back from the function and the contents of the addrinfo structure. it's a whole little reveal moment ✨

now the exit status, and this part matters so listen up:

  • 1 β€” the answer you received is trusted πŸ‘‘
  • 2 β€” the answer you received is validated βœ…
  • -1 β€” an error happened πŸ’€
  • 0 β€” returned if no validation was performed, or if the result is neither trusted nor validated

where do those trusted/validated status values come from, you ask? they're obtained using the val_istrusted() and val_isvalidated() functions from libval(3). iconic behavior, fr fr.


πŸ’… OPTIONS πŸ’…

  • -c, --canonname β€” use the AI_CANONNAME flag in val_getaddrinfo(). yes bestie, we're asking for the canonical name too πŸŽ€
  • -s, --service=PORT|SERVICE β€” use the transport-layer port or service name you specify here.
  • -o, --output=<debug-level>:<dest-type>[:<dest-options>] β€” the output config situation, and it has layers (literally):
    • <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
      • net[:<host-name>:<host-port>] β€” 127.0.0.1:1053
      • syslog[:facility] β€” 0-23 (default 1 USER)
  • -h, --help β€” display the help and exit. bye bestie, you got your answers 🫢

🌈 PRE-REQUISITES 🌈

libval

like, you need it. that's the whole prerequisite list. no notes. πŸ’œ


Copyright 2005-2013 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.

(legal girlies, this one's for you πŸŽ€)


πŸ‘‘ AUTHORS πŸ‘‘

Abhijit Hayatnagarkar, Suresh Krishnaswamy, Robert Story

absolute legends, all three of them πŸ’–


πŸ”₯ SEE ALSO πŸ”₯


ok that's the page!! go forth and dt-getaddr responsibly, bestie πŸ¦‹

and a lil sign-off for the record: this page is from perl v5.14.3, dated 2013-02-27 β€” that's the DT-GETADDR(1) energy, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from