Skip to content

dnstap showing extra responses #369

@fhriley

Description

@fhriley

I'm seeing extra responses in the dnstap stream from unbound 1.13.0. I'm not sure if this is unbound actually generating extra responses or the dnstap stream duplicating the responses. Here is an example (decoded using https://github.com/dnstap/golang-dnstap/tree/master/dnstap) that I extracted from my dnstap logs. Note the extra client response. The timestamps also look strange. The timestamp of the client response is before the timestamp of the forwarder response.

message:
  type: CLIENT_QUERY
  query_time: !!timestamp 2020-12-09 23:15:19.20792
  socket_family: INET
  socket_protocol: UDP
  query_address: 192.168.1.221
  query_port: 54582
  query_message: |
    ;; opcode: QUERY, status: NOERROR, id: 2
    ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;pubsub.pubnub.com.	IN	 A
---
type: MESSAGE
message:
  type: CLIENT_RESPONSE
  response_time: !!timestamp 2020-12-09 23:15:19.208216
  socket_family: INET
  socket_protocol: UDP
  query_address: 192.168.1.221
  query_port: 54582
  response_message: |
    ;; opcode: QUERY, status: NOERROR, id: 2
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;pubsub.pubnub.com.	IN	 A
    
    ;; ANSWER SECTION:
    pubsub.pubnub.com.	18	IN	A	54.241.191.232
    pubsub.pubnub.com.	18	IN	A	54.241.191.233
---
type: MESSAGE
message:
  type: FORWARDER_QUERY
  query_time: !!timestamp 2020-12-09 23:15:19.208601
  socket_family: INET
  socket_protocol: UDP
  response_address: 1.1.1.1
  response_port: 53
  query_zone: "."
  query_message: |
    ;; opcode: QUERY, status: NOERROR, id: 57949
    ;; flags: rd cd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;pubsub.pubnub.com.	IN	 A
    
    ;; ADDITIONAL SECTION:
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version 0; flags: do; udp: 1472
---
type: MESSAGE
message:
  type: CLIENT_RESPONSE
  response_time: !!timestamp 2020-12-09 23:15:19.208623
  socket_family: INET
  socket_protocol: UDP
  query_address: 192.168.1.221
  query_port: 54582
  response_message: |
    ;; opcode: QUERY, status: NOERROR, id: 2
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;pubsub.pubnub.com.	IN	 A
    
    ;; ANSWER SECTION:
    pubsub.pubnub.com.	18	IN	A	54.241.191.232
    pubsub.pubnub.com.	18	IN	A	54.241.191.233
---
type: MESSAGE
message:
  type: FORWARDER_RESPONSE
  query_time: !!timestamp 2020-12-09 23:15:19.20788
  response_time: !!timestamp 2020-12-09 23:15:19.228139
  socket_family: INET
  socket_protocol: UDP
  response_address: 1.1.1.1
  response_port: 53
  query_zone: "."
  response_message: |
    ;; opcode: QUERY, status: NOERROR, id: 57949
    ;; flags: qr rd ra cd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
    
    ;; QUESTION SECTION:
    ;pubsub.pubnub.com.	IN	 A
    
    ;; ANSWER SECTION:
    pubsub.pubnub.com.	93	IN	A	54.241.191.232
    pubsub.pubnub.com.	93	IN	A	54.241.191.233
    
    ;; ADDITIONAL SECTION:
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version 0; flags: do; udp: 1232```

Metadata

Metadata

Assignees

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