id | uint(16) | 4660 | | Query identifier, copied into the response. |
qr | enum(1) | 0 (query) | | Query (0) or response (1). |
opcode | enum(4) | 0 (query) | | Kind of query (0 = standard query, 4 = NOTIFY, 5 = UPDATE). |
aa | uint(1) | 0 | | Authoritative answer flag. |
tc | uint(1) | 0 | | Truncation flag. |
rd | uint(1) | 1 | | Recursion desired flag. |
ra | uint(1) | 0 | | Recursion available flag. |
z | uint(1) | 0 | | Reserved bit (must be 0). |
ad | uint(1) | 0 | | Authentic data flag (DNSSEC). |
cd | uint(1) | 0 | | Checking disabled flag (DNSSEC). |
rcode | enum(4) | 0 (no_error) | | Response code (0 = NOERROR, 3 = NXDOMAIN, …). |
qdcount | uint(16) | 1 | | Number of entries in the question section. |
ancount | uint(16) | 0 | | Number of resource records in the answer section. |
nscount | uint(16) | 0 | | Number of resource records in the authority section. |
arcount | uint(16) | 0 | | Number of resource records in the additional section. |
sections | bytes — rest of the PDU | 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00 00 01 00 01 | | Question / answer / authority / additional sections (length-prefixed label names); opaque octets. |