zonemaster / zonemaster-ldns

A Perl interface module for Zonemaster to NLnet Labs' ldns library
Other
8 stars 12 forks source link

Wrong additional section counter #109

Open matsduf opened 5 years ago

matsduf commented 5 years ago

The OPT record is stored in the additional section of the DNS packet, and the additional section RR count includes the OPT record. The count is found in the header. The following excerpt from zonemaster-cli google.com --test nameserver --level debug3 shows that Zonemaster gives wrong figure of the count:

 459.37 DEBUG2    SYSTEM:QUERY flags={"edns_details":{"version":1}}; ip=2001:4860:4802:32::a; name=google.com; type=SOA
 459.37 DEBUG     SYSTEM:EXTERNAL_QUERY flags={"class":"IN","edns_details":{"version":1}}; ip=2001:4860:4802:32::a; name=google.com; type=SOA
 459.38 DEBUG3    SYSTEM:EXTERNAL_RESPONSE packet=;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 0
;; flags: qr aa ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; google.com.  IN      SOA

;; ANSWER SECTION:

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 9 msec
;; EDNS: version 0; flags: ; ext-rcode: 16 ; udp: 512
;; SERVER: 2001:4860:4802:32::a
;; WHEN: Fri Jan 25 11:38:00 2019
;; MSG SIZE  rcvd: 39
vlevigneron commented 4 years ago

Seems to be an issue in LDNS.

matsduf commented 2 years ago

To be reported to LDNS and then closed.