dnsi-query(1)
π dnsi-query(1) β General Commands Manual, but make it cute
okay bestie, welcome to dnsi-query β it's the dnsi query subcommand, and it's literally the moment your terminal goes "hey DNS server, wyd?" and prints out whatever comes back π no cap, it's giving dig's cooler cousin.
β¨ NAME β¨
dnsi-query β send a query to a name server π
π¦ SYNOPSIS π¦
dnsi query [options] query_name [query_type]
πΈ DESCRIPTION πΈ
The dnsi query command sends a DNS query to a name server and prints out the response π₯. The server can either be one you pick yourself, or the resolver configured in your system gets used. either way, slay.
The query is for the domain name given by query_name. If query_type is given, that's your record type, iykyk. If it's missing, the record type AAAA is used. periodt.
A specific name server and port can be selected through the --server and --port options π
. If the port is missing, the default port is used. If no server is given, the system's default servers configured in /etc/resolv.conf are tried in order and the first received response is printed β first one wins, main character energy only π.
If neither the --tcp nor --udp options are given, the query is first sent over UDP. If a response is received but it indicates that it had to be truncated to fit, it's repeated over TCP β glow-up round two β¨. If one of the options is given, then only that transport protocol is used. In particular, if --udp is given, a truncated answer is accepted and printed. that's it, that's the vibe.
The output format can be selected through the --format option. If it's missing, output similar to that of dig(1) is used π«Ά.
π OPTIONS π
-saddr_or_host,--serveraddr_or_hostβ specifies the name server to send the query to. If present, the query goes to the server you named. If you use a host name, the name is resolved using the system resolver, the query is sent to the resulting addresses, and the first received response is printed π―.
If this option is missing, the system's default servers configured in /etc/resolv.conf are tried in order and the first received response is printed.
--pport,--portportβ specifies the port to use when connecting to the name server. If missing, the default port gets used. That's53for UDP and TCP, iconic and classic π.-4,--ipv4β indicates that only IPv4 should be used.-6,--ipv6β indicates that only IPv4 should be used. (yes, that's literally what the page says π copying it faithfully, don't come for me.)-t,--tcpβ specifies that only TCP should be used.-u,--udpβ specifies that only UDP should be used, and the resulting answer gets printed even if it had to be truncated. truncation? accepted. we move π.--tlsβ specifies that TLS should be used π. In this case a server name or address must be explicitly given via the--serveroption. no server, no TLS, no exceptions.--tls-hostnameβ specifies the hostname to be used for server certificate validation when--tlsis used. By default the name given to the--serveroption is used. The option is mandatory, however, if an address is used as the server β so if you handed it an address, you gotta hand it a hostname too, bestie π.--timeoutsecondsβ sets the time after sending a query before a server is considered non-responsive if an answer is not received β³.
The seconds value can be given with decimal fractions, e.g., 0.2. yes, fractional, we're precise here.
--retriesnumberβ the number of times a query is retried over UDP after timing out before a server is considered non-responsive. This value is ignored for transport protocols other than UDP β so TCP/TLS girlies, this one's not for you π .--udp-payload-sizebytesβ sets the accepted UDP payload size announced in the query to server. If this option is missing, the default size of1232bytes is used. The value is ignored for transport protocols other than UDP π§.--ad,--no-adβ specifies whether the "authentic data" flag (AD flag for short) should be set or not set in the query. If neither option is given, the flag will not be set.
The flag indicates to a resolver that it should set the AD flag in its reply if it is found to be DNSSEC secure π₯.
--cd,--no-cdβ specifies whether the "checking disabled" flag (CD flag for short) should be set or not set in the query. If neither option is given, the flag will not be set.
The flag indicates that the server should not do any DNSSEC validation π«.
--do,--no-doβ specifies whether the "DNSSEC OK" flag (DO flag for short) should be set or not set in the query. If neither option is given, the flag will not be set.
The flag indicates that the server should include all DNSSEC-related records with the answer π.
--rd,--no-rdβ specifies whether the "recursion desired" flag (RD flag for short) should be set or not set in the query. If neither option is given, the flag will be set β note that this one's on by default, unlike its friends above π.
The flag indicates to a resolver that it should try and gather all necessary information from their authoritative name servers to create a complete answer to the query. This process is called "recursion."
-f,--forceβ requests that no sanity checks are done and the query is to be sent as specified π.
Normally, dnsi query will refuse to do zone transfer queries with query type AXFR or IXFR because they require special processing. With this option, you can force it to send these queries, anyway. you've been warned, bestie.
--verifyβ requests to compare the received response to the response provided by one of the authoritative name servers π.
If the resource records in the answer section differ, a diff between them is provided. Records that appear in the answer section of the received response only are prefixed with a plus, records that appear in the answer section of the authoritative response are prefixed with a minus. so + = yours, - = theirs, cute π.
The records in the authority and additional sections are not compared.
This option is intended for zones that provide the same answer on all servers and only one authoritative response is acquired and considered. If the zone's name servers provided differing answers, re-running the command thus may result in different output. ngl, that's a little chaotic, but it's documented so π«Ά.
--formatformatβ selects the data format in which the response should be printed. The following formats are currently supported:digβ the response and some additional information are printed in a format similar to whatdig(1)produces.
This is currently the default format if the option is missing. so honestly you can just skip it πΈ
-h,--helpβ prints some help information.
okay that's the whole page, you're so welcome π this beauty comes to you from NLnet Labs, and it's the dnsi-query(1) page from the General Commands Manual β go forth and query, bestie, you got this π¦β¨
π¦ where this page comes from
- nixpkgs unstable: dnsi 0.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms