]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: usr: dig +yaml producing invalid YAML when a lookup fails main
authorMartin Basti <mbasti@isc.org>
Tue, 21 Jul 2026 20:01:42 +0000 (20:01 +0000)
committerMartin Basti <mbasti@isc.org>
Tue, 21 Jul 2026 20:01:42 +0000 (20:01 +0000)
commite748b6d2ab7cf4af432085d13451e2dba6463395
tree211f336ca68d3cd5a471ab69e364f8612c743b0f
parentf9ed83bd6f8e94c866101a07d655191f2aa5480c
parent6dc2d6b2eb3e0deada16154c3f8281acbf9bad80
fix: usr: dig +yaml producing invalid YAML when a lookup fails

When "dig +yaml" was run and no server could be reached, dig printed its plain-text startup banner (the "; \<\<\>\> DiG ..." and ";; global options" lines) ahead of the machine-readable output, so the result was not valid YAML and could not be parsed. dig no longer emits that banner in YAML mode. As part of the same change, the banner is now built only after the whole command line has been read, so options given after the query name (such as +nocmd, +short and +yaml) are correctly reflected in it.

Closes #1230

Merge branch '1230-dig-fix-error-comments' into 'main'

See merge request isc-projects/bind9!12416