Skip to content

dnstap does not log the DNS message ID for FORWARDER_QUERY #368

@fhriley

Description

@fhriley

I'm seeing an ID of 0 for FORWARDER_QUERY dnstap messages. The FORWARDER_RESPONSE does contain the ID as do all of the CLIENT_QUERY and RESOLVER_QUERY message types. See example below (decoded using https://github.com/dnstap/golang-dnstap/tree/master/dnstap). Shouldn't the forwarder query have a non-zero ID? I'm using unbound 1.13.0.

type: MESSAGE
message:
  type: FORWARDER_QUERY
  query_time: !!timestamp 2020-12-09 21:40:22.415342
  socket_family: INET
  socket_protocol: TCP
  response_address: 1.1.1.1
  response_port: 853
  query_zone: "."
  query_message: |
    ;; opcode: QUERY, status: NOERROR, id: 0   <------------------------------------ ID is 0?
    ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;itunes.apple.com.edgekey.net.      IN       HTTPS

    ;; ADDITIONAL SECTION:

    ;; OPT PSEUDOSECTION:
    ; EDNS: version 0; flags: do; udp: 1472
type: MESSAGE
message:
  type: FORWARDER_RESPONSE
  query_time: !!timestamp 2020-12-09 21:40:22.414892
  response_time: !!timestamp 2020-12-09 21:40:22.44134
  socket_family: INET
  socket_protocol: TCP
  response_address: 1.1.1.1
  response_port: 853
  query_zone: "."
  response_message: |
    ;; opcode: QUERY, status: NOERROR, id: 6959   <------------------------------------ ID is non-zero
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

    ;; QUESTION SECTION:
    ;itunes.apple.com.edgekey.net.      IN       HTTPS

    ;; ANSWER SECTION:
    itunes.apple.com.edgekey.net.       21423   IN      CNAME   e673.dsce9.akamaiedge.net.

    ;; AUTHORITY SECTION:
    dsce9.akamaiedge.net.       823     IN      SOA     n0dsce9.akamaiedge.net. hostmaster.akamai.com. 1607549848 1000 1000 1000 1800

    ;; ADDITIONAL SECTION:

    ;; OPT PSEUDOSECTION:
    ; EDNS: version 0; flags: do; udp: 1232
    ; PADDING: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions