RFC Errata
RFC 8427, "Representing DNS Messages in JSON", July 2018
Source of RFC: IETF - NON WORKING GROUPArea Assignment: art
Errata ID: 5570
Status: Held for Document Update
Type: Technical
Publication Format(s) : TEXT
Reported By: Stéphane Bortzmeyer
Date Reported: 2018-12-07
Held for Document Update by: Benjamin Kaduk
Date Held: 2019-01-25
Section 5.2 says:
"responseMessage": { "ID": 32784, "QR": 1, "AA": 1, "RCODE": 0, "QDCOUNT": 1, "ANCOUNT": 1, "NSCOUNT": 1,
It should say:
"responseMessage": { "ID": 32784, "QR": 1, "AA": 1, "RCODE": 0, "QDCOUNT": 1, "ANCOUNT": 2, "NSCOUNT": 1,
Notes:
ANCOUNT should, IMHO, be 2 and not 1. There are two resource records in the answer section.
True, the RFC explicitely says (section 8, 1st paragraph) that there can be a discrepancy between ANCOUNT and the actual number of records but I doubt this example was meant to illustrate this point.