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

Problem with is_answer and replies without question section #197

Open
Philip-NLnetLabs opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@Philip-NLnetLabs
Copy link
Member

An older version of unbound has the following bug:
$ dig +tcp +bufsize=0 +nocookie +keepalive www.nlnetlabs.nl

; <<>> DiG 9.18.12-0ubuntu0.22.04.1-Ubuntu <<>> +tcp +bufsize +nocookie +keepalive www.nlnetlabs.nl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 60049
;; flags: qr tc rd ad; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; Query time: 0 msec
;; SERVER: 185.49.141.38#53(185.49.141.38) (TCP)
;; WHEN: Fri Apr 14 15:46:35 CEST 2023
;; MSG SIZE rcvd: 12

This causes is_answer to return false. For TCP transports I would like to return this error. I could write a custom is_answer locally. But maybe not checking the question when there is no question section should be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant