ADNSHOST(1)
πΈ ADNSHOST π
okay bestie, so this is adnshost β it's the Asynchronous-capable DNS client utilities, living in the User Commands section of the manual. it's giving "one binary, so many vibes" and honestly? we're obsessed. let's get into it π¦
β¨ DESCRIPTION β¨
the sacred usage incantation, no cap:
usage: adnshost [global-opts] [query-opts] query-domain
[[query-opts] query-domain ...]
adnshost [global-opts] [query-opts] -f|--pipe
so you either pile queries onto the command line, or you pipe them in. main character energy either way π
π global binary options (the on/off girlies)
+e,--no-envβ do NOT look at environment variables. at all. none. we're ignoring them entirely, periodt.-f,--pipeβ read queries from stdin instead of from the args. pipeline slay.-a,--asynchβ let the answers get reordered. chaos permitted, but the good kind β¨
π answer/error output format and destination (details further down, iykyk)
-Fs,--fmt-simpleβ answers go to stdout, errors show up as messages on stderr. this is the default β¨-Fi,--fmt-inlineβ answers AND errors both go to stdout, in a parseable format. tidy π-Fa,--fmt-asynchβ fully-parseable output format. this is the default when you use--asynchπ
π global verbosity level
-Vq,--quietβ print literally nothing to stderr. silence is golden π-Vn,--no-quietβ only report unexpected kinds of problem. this is the default.-Vd,--debugβ debugging mode, we're going full detective π--no-checkcβ skip the for-developer consistency checks--checkcβ actually DO the for-developer consistency checks--checkc-freqβ do those for-developer consistency checks very often
π other global options
--config <<config-text>>β config to use instead of/etc/resolv.conf--versionβ print the version number--helpβ print usage information
π¦ per-query options
-t<type>/--type <type>β which query type (list is down below bestie)-i<addr>/--ptr <addr>β do a reverse query (address β name lookup)--reverse <addr> <zone>β lookup in an in-addr-likezone(eg MAPS RBL)
πΈ per-query binary options
-s,--searchβ use the search list-Qq,--qc-queryβ let query domains contain quote-requiring chars-Qa,--qc-anshostβ let hostnames in answers contain ...+Qc,--no-qc-cnameβ prevent CNAME target domains from containing ...-u,--tcpβ force the use of a virtual circuit+Do,--no-show-ownerβ don't display the owner name in output+Dt,--no-show-typeβ don't display the RR type in output+Dc,--no-show-cnameβ don't display the CNAME target in output
β³ per-query TTL mode
NB: the TTL here is the minimum across all the info in the reply π«Ά
-Tt,--ttl-ttlβ show the TTL as a TTL-Ta,--ttl-absβ show the TTL as atime_tfor when the data might expire-Tn,--no-ttlβ don't show the TTL. this is the default.
π§ per-query address family options (for addr and friends)
-A4,----addr-ipv4-onlyβ only return IPv4 addresses-A6,----addr-ipv6-onlyβ only return IPv6 addresses-Aa,----addr-allβ return all available addresses. this is the default.-Am,----addr-ipv6-mappedβ return IPv4 addresses as IPv6-mapped
π₯ per-query CNAME handling mode
-Cf,--cname-rejectβ call it an error if a CNAME is found-Cl,--cname-looseβ allow references to CNAMEs in other RRs-Cs,--cname-okβ CNAME is fine for the query domain, but not in RRs. this is the default.
β asynchronous/pipe mode options
--asynch-id <id>β set the<id>; by default it's a decimal sequence starting at0--cancel-id <id>β cancel the query with id<id>(no error if it's not found, she's chill like that)
π
escaping domains which might start with -
- <domain>β the next argument is a domain, but more options may still follow
Query domains should always be quoted according to master file format. no shortcuts bestie π
For binary options, --FOO and --no-FOO are opposites, and so are -X and +X. In each case the default is the one that isn't listed. Per-query options stay set a particular way until they're reset β whether they appear on the command line or on stdin. And all global options must preceed the first query domain.
With -f, the input should be lines with either an option β possibly with a value argument, separated from the option by a space if it's a long option β or a domain, possibly preceded by a hyphen and a space to distinguish it from an option. π
π output format
Output format is master file format without class or TTL by default:
[<owner>] [<ttl>] [<type>] <data>
or, if the <owner> domain refers to a CNAME and --show-cname is on:
[<owner>] [<ttl>] CNAME <cname> [<cname>] [<ttl>] <type> <data>
When a query fails you get an error message to stderr (with --fmt-simple). Specify --fmt-inline for lines like this (broken up here for readability, she's long):
; failed <statustype> <statusnum> <statusabbrev> \
[<owner>] [<ttl>] [<cname>] "<status string>"
If you use --fmt-asynch, which is the default for --asynch, each answer β success or failure β is preceded by a line:
<id> <nrrs> <statustype> <statusnum> <statusabbrev> \
[<owner>] [<ttl>] [<cname>] "<status string>"
where <nrrs> is the number of RRs that follow, and <cname> will be $ or the CNAME target. the CNAME indirection and error formats above are not used in this mode. π
π«Ά exit status
0β all went well β¨1-6β at least one query failed with statustype:
1βlocalfailβ temporary errors2βremotefailβ temporary errors3βtempfailβ temporary errors4βmisconfigβ permanent errors5βmisqueryβ permanent errors6βpermfailβ permanent errors
10β system trouble11β usage problems
π query types (see adns.h; default is addr)
nssoaptrmxrpsrvaddrβ the enhanced versions πcnamehinfotxtβ types with only one versionaaaaans-soa-ptr-mx-rp-srv-β the _raw versionstype<number>β theunknowntype, RFC3597
Default is addr, or ptr for -i/--ptr queries. π
π COPYRIGHT π
Copyright Ian Jackson and contributors πΈ
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. fr fr, protect yourself bestie.
okay that's the whole thing, you ate π this was GNU adns 1.6.2, dated May 2026 β go forth and resolve some names, queen ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: adns-tools 1.6.2-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms