Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsdist: include rcode to packet cache dump #9274

Closed
SrX opened this issue Jun 24, 2020 · 0 comments · Fixed by #9737
Closed

dnsdist: include rcode to packet cache dump #9274

SrX opened this issue Jun 24, 2020 · 0 comments · Fixed by #9737

Comments

@SrX
Copy link

SrX commented Jun 24, 2020

  • Program: dnsdist 1.4.0
  • Issue type: Feature request

Short description

Add the response code to packet cache dump.

Usecase

Improve troubleshooting and traceability.

Description

In the current dnsdist version, packet cache doesn't include the response code of the query.

Current output, domain 2222222.hola.com has a response code NXDomain and hola.com. is an noerror.

[@localhost]# cat /tmp/pc.dump
; dnsdist's packet cache dump follows
;
2222222.hola.com. 295 A ; key 1246589825, length 118, tcp 0, added 1593008327
hola.com. 3565 A ; key 1899171056, length 53, tcp 0, added 1593008297

Desired output with response code:

[@localhost]# cat /tmp/pc.dump
; dnsdist's packet cache dump follows
;
2222222.hola.com. 295 A nxdomain; key 1246589825, length 118, tcp 0, added 1593008327
hola.com. 3565 A noerror; key 1899171056, length 53, tcp 0, added 1593008297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants