dnsviz-print(1)

πŸ“¦
version 0.11.1 Β· 5 versions
, in debian trixie, fedora 43, fedora 44, nixos 26.05, ubuntu resolute, ubuntu stonking

πŸŽ€ dnsviz-print β€” part of the dnsviz family (General Commands Manual) πŸŽ€

okay bestie, so this is dnsviz-print(1) and it's literally the vibe-checker for your DNS deployments. let's get into it πŸ’…


✨ NAME ✨

dnsviz-print β€” print the assessment of diagnostic DNS queries


🌸 SYNOPSIS 🌸

dnsviz print [ options ] [ domain_name... ]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: dnsviz-print takes the results of diagnostic DNS queries that you already ran before (like, with dnsviz-probe(1), iykyk) and it processes them to assess the health of the DNS deployments for one or more domain names you specify. then it shows you all that processing as textual output. periodt.

where does the diagnostic query input come from? two places, bestie:

  • a file you hand it with -r
  • or standard input

and the domain names you wanna process? those can come in three ways:

  • as command-line arguments
  • in a file (via the -f option)
  • or just... implied from the diagnostic query input itself

that third one is the preferred methodology (and the simplest, lowkey iconic). it's useful basically always, except when your input has diagnostic queries for multiple domain names and you only wanna process a subset of them. in that case you gotta be explicit.

so if -f is NOT used and you don't put any domain names on the command line, the names to be processed get extracted from the diagnostic query input. and if you DO use -f, then you can't also put names on the command line. pick a lane, gorgeous 🫢

the domain names you pass in are fully-qualified domain names, like:

  • example.com
  • www.example.com
  • _443._tcp.example.com
  • 1.2.0.192.in-addr.arpa
  • 8.b.d.0.1.0.0.2.ip6.arpa

and because it's already implied that the names you specify are fully qualified, you do not need a trailing dot. no cap.

the output is made for terminal or text-file output β€” it uses colors (where your terminal supports it) and symbols to show status and errors, in a loosely-defined textual format. it's giving dashboard energy ✨


πŸ’– OPTIONS πŸ’–

  • -f, --names-file filename β€” read names from a file instead of from the command line (one name per line, bestie).
if you use this option, you may not specify names on the command line. them's the rules.
  • -r, --input-file filename β€” read the diagnostic query input from the file you specify, instead of from standard input.
  • -t, --trusted-keys-file filename β€” use trusted keys from the specified file when processing diagnostic queries. this overrides the default behavior, which is using the installed keys for the root zone.

the format of this file is master zone file format, and it should contain DNSKEY records that correspond to one or more trusted keys for one or more DNS zones.

you can use this option multiple times on the command line. stack 'em up πŸ’…

  • -S, --show-colors β€” use terminal colors even when the output is not a TTY, or when colors aren't supported. normally dnsviz-print(1) detects your terminal's capabilities and only uses colors where they're supported. this option overrides that detection and always includes terminal colors in the output. rainbow mode, activated 🌈
  • -a, --algorithms alg[,alg...] β€” support only the DNSSEC algorithms specified. if you use this option, any algorithms you didn't list will show up as "unsupported." the status of any RRSIG records corresponding to unsupported algorithms will be unknown. and also: when a zone has only DS records with unsupported algorithms, that zone is treated as "insecure" β€” assuming the DS records are properly authenticated. 🫠
  • -d, --digest-algorithms digest_alg[,digest_alg...] β€” support only the DNSSEC digest algorithms specified. if you use this option, any digest algorithms you didn't list will show up as "unsupported." the status of any DS records corresponding to unsupported digest algorithms will be unknown. and likewise: when a zone has only DS records with unsupported digest algorithms, that zone is treated as "insecure" β€” assuming the DS records are properly authenticated.
  • --ignore-rfc8624 β€” ignore errors associated with RFC 8624, the DNSSEC algorithm implementation requirements. RFC 8624 designates some DNSSEC signing algorithms and some DS digest algorithms as prohibited ("MUST NOT") or not recommended for validation and/or signing. if you use this option, then no warnings will be issued, and the code will still assess their cryptographic status rather than ignoring them. so like, no nagging, but it's still watching πŸ‘€
  • --ignore-rfc9276 β€” ignore errors associated with RFC 9276, NSEC3 parameter settings. RFC 9276 specifies that if NSEC3 is used, the iterations count must be 0 and the salt length must be 0. if you use this option, then no warnings will be issued for NSEC3 records that violate this specification.
  • -C, --enforce-cookies β€” enforce DNS cookies strictly. require a server to return a "BADCOOKIE" response when a query contains a COOKIE option with no server cookie, or with an invalid server cookie. no cookies for you πŸͺ🚫
  • -P, --allow-private β€” allow private IP addresses for authoritative DNS servers. by default, if the IP address corresponding to an authoritative server is in IP address space designated as "private", it gets flagged as an error. but there are some cases where this is allowed. for example, if the diagnostic queries are issued to servers in an experimental environment, this might be permissible.
  • --trust-cdnskey-cds β€” trust all CDNSKEY and CDS records, even if they are not "signed with a key that is represented in both the current DNSKEY and DS RRsets" (RFC 7344). this is allowed if "the Parent uses the CDS or CDNSKEY RRset for initial enrollment; in that case, the Parent validates the CDS/CDNSKEY through some other means" (RFC 7344). and because there is literally no way for DNSViz to discover the out-of-band means with which the parent might have validated the CDNSKEY and/or CDS records, this trust is signaled with the use of the --trust-cdnskey-cds command-line option. you're vouching for it, bestie 🫢
  • --multi-signer β€” don't issue errors for missing KSKs with DS RRs. typically an error is issued if a given DNSKEY is not found in the DNSKEY RRset returned by one or more servers. if --multi-signer is specified, then no error is issued, in the case that:
    1. the DNSKEY is not signing any non-DNSKEY RRsets (i.e., is a zone-signing key or ZSK), and
    2. the DNSKEY corresponds to a DS record in the parent.

this corresponds to the Model 2 use case in RFC 8901. multi-signer main character energy πŸ‘‘

  • -R, --rr-types type[,type...] β€” process queries of only the specified type(s) (e.g., A, AAAA). the default is to process all types queried as part of the diagnostic input.
  • -O, --derive-filename β€” save the output to a file whose name is derived from the domain name.

if you use this option when the diagnostic queries of multiple domain names are being processed, a file will be created for each domain name processed. one file per name, we love a collection πŸ’–

  • -o, --output-file filename β€” write the output to the specified file instead of to standard output, which is the default.

if you use this option when the diagnostic queries of multiple domain names are being processed, a single file (the one you specified) will be created, and it will contain the collective output for all domain names processed. everything all in one place, slay.

  • -h β€” display the usage and exit. bye bestie πŸ‘‹

✨ OUTPUT ✨

okay bestie, here's what it actually looks like when it runs, no cap:

. [.]
[.]  DNSKEY: 8/1518/256 [.], 8/19036/257 [.]
[.]    RRSIG: ./8/19036 (2015-08-20 - 2015-09-03) [.]
com [.] [.]
[.]  DS: 8/30909/2 [.]
[.]    RRSIG: ./8/1518 (2015-08-26 - 2015-09-05) [.]
[.]  DNSKEY: 8/30909/257 [.], 8/35864/256 [.]
[.]    RRSIG: com/8/30909 (2015-08-24 - 2015-08-31) [.]
example.com [.] [.]
[.]  DS: 8/31406/1 [.], 8/31406/2 [.], 8/31589/1 [-], 8/31589/2 [-],
8/43547/1 [-], 8/43547/2 [-]
[.]    RRSIG: com/8/35864 (2015-08-24 - 2015-08-31) [.]
[.]  DNSKEY: 8/54108/256 [.], 8/31406/257 [.], 8/63870/256 [.]
[.]    RRSIG: example.com/8/31406 (2015-08-24 - 2015-09-14) [.]
www.example.com
[.]  A: 192.0.2.1
[.]    RRSIG: example.com/8/31406 (2015-08-24 - 2015-09-14) [.]
non-existent.example.com
[.]  A: NXDOMAIN
[.]    SOA: sns.dns.icann.org. noc.dns.icann.org. 2015082401 7200 3600
1209600 3600
[.]      RRSIG: example.com/8/54108 (2015-08-24 - 2015-09-14) [.]
[.]    PROOF:  [.]
[.]      NSEC: example.com. www.example.com. A NS SOA TXT AAAA RRSIG
NSEC DNSKEY
[.]        RRSIG: example.com/8/54108 (2015-08-21 - 2015-09-11) [.]

🌸 Domain Names 🌸

The output above is divided into several sections, each corresponding to the domain name that starts the section (e.g., example.com). Following the headers of names that correspond to zones are two sets of characters, each within brackets. The characters within the first set of brackets represent the status of the zone. The characters within the second set of brackets represent the status of the delegation (note that this second set of bracketed characters will not be present for the root zone).

The first character within each set of brackets is one of the following:

  • . β€” secure zone or delegation
  • - β€” insecure zone or delegation
  • ! β€” bogus zone or delegation
  • ? β€” lame or incomplete delegation

If there is a second character within the brackets, it represents the following:

  • ! β€” errors are present
  • ? β€” warnings are present

For example, an insecure delegation with warnings is represented as: [-?] And a secure delegation with no errors is shown as: [.]

πŸ¦‹ Query Responses πŸ¦‹

The lines in each section, below the header, represent responses to queries for that name from one or more servers. The bracketed characters at the far left of each line represent the status of the response or response component on the rest of the line. The first character in the brackets represents the authentication status:

  • . β€” secure
  • - β€” insecure
  • ! β€” bogus

If there is a second character within the brackets, it represents the following:

  • ! β€” errors are present
  • ? β€” warnings are present

For example, an insecure status with warnings is represented as: [-?] And a secure status with no errors is shown as: [.]

The status of the response is followed by the type corresponding to the query or response. For example, A means that data following is in response to a query of type A (IPv4 address) for the name of the corresponding section. When the response is positive (i.e., there is data in the answer section), the corresponding data is shown on the right (with some exceptions) as a comma-separated set of records within the RRset. DNSKEY, DS, and RRSIG records show an abbreviated format of their records, as follows:

  • DNSKEY: <algorithm number>/<key tag>/<flags>

Example: 8/35864/256

  • DS: <algorithm number>/<key tag>/<digest type>

Example: 8/30909/2

  • RRSIG: <signer>/<algorithm number>/<key tag> (<inception> - <expiration>)

Example: com/8/35864 (2015-08-24 - 2015-08-31)

Following each record within a DNSKEY, DS, or RRSIG response is a bracketed set of characters, the first of which represents validity:

  • . β€” valid
  • - β€” indeterminate
  • ! β€” invalid/expired/premature
  • ? β€” indeterminate due to unknown algorithm

If there is a second character within the brackets, it represents the following:

  • ! β€” errors are present
  • ? β€” warnings are present

For example, a DNSKEY with warnings is shown as: [.?] A DS corresponding to a non-existent DNSKEY is represented as: [-]

RRSIGs are shown below the RRset they cover, indented from the RRset.

πŸ“ Negative Responses πŸ“

If a response is negative, then the appropriate NODATA or NXDOMAIN text is shown adjacent the type queried, e.g., A: NXDOMAIN. If there was an SOA record and/or NSEC(3) proof, then they are listed below, indented from the query type.

The NSEC or NSEC3 records (and their RRSIGs) comprising a proof are grouped by indentation under the title PROOF which is itself indented under the negative response line. Following PROOF is a bracketed set of characters with the same meaning as those used for DS, DNSKEY, and RRSIG.

πŸ’€ Errors and Warnings πŸ’€

Textual errors and warnings are listed below the response components with which the issues are associated. Each error or warning is listed on its own line and prefaced with E: or W:, signifying whether it is an error or warning, respectively.


πŸšͺ EXIT CODES πŸšͺ

The exit codes are:

  • 0 β€” Program terminated normally.
  • 1 β€” Incorrect usage.
  • 2 β€” Required package dependencies were not found.
  • 3 β€” There was an error processing the input or saving the output.
  • 4 β€” Program execution was interrupted, or an unknown error occurred.

πŸ‘€ SEE ALSO πŸ‘€

dnsviz(1), dnsviz-probe(1), dnsviz-grok(1), dnsviz-graph(1), dnsviz-query(1)


and that's the whole page, bestie πŸ’– this one's dnsviz-print(1) from dnsviz version 0.11.1, dated 21 April 2025. go forth and read your DNS output like the main character you are πŸ‘‘βœ¨

πŸ“¦ where this page comes from