dig: EDNS options in requests cause bad YAML output
The YAML output for +qr with +nsid is bad. Note the "NSID" line below has no colon and no value, so the YAML output is invalid.
# /dig ns va @c.root-servers.net -4 +notcp +yaml +qr +nsid +recurse +time=4 +tries=1
-
type: MESSAGE
message:
type: RECURSIVE_QUERY
query_time: !!timestamp 2019-09-13T16:34:17.956Z
message_size: 47b
socket_family: INET
socket_protocol: UDP
response_address: 192.33.4.12
response_port: 53
query_address: 0.0.0.0
query_port: 62875
query_message_data:
opcode: QUERY
status: NOERROR
id: 17687
flags: rd ad
QUESTION: 1
ANSWER: 0
AUTHORITY: 0
ADDITIONAL: 1
OPT_PSEUDOSECTION:
EDNS:
version: 0
flags:
udp: 4096
NSID
COOKIE: ba61ac759b7b483f
QUESTION_SECTION:
- va. IN NS
Edited by Paul Hoffman