Skip to content

Conversation

@rgacogne
Copy link
Member

Short description

@rygl reported that Unbound sends Refused responses containing only the DNS header, and that we didn't parse these correctly.
This patch also makes the packet cache use the same custom TTL for Refused responses than for ServFail ones.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled and tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added regression tests

@rygl reported that unbound at least sends `Refused` responses
containing only the DNS header.
The check is done before inserting the response into the cache, but
it feels safer to check it again before passing it to `memcpy()`.
We check that the cached response is larger than
`sizeof(dnsheader) + qname` afterwards, but the previous commit
moved the header copy before that check.
@rgacogne rgacogne merged commit 2ea1f87 into PowerDNS:master Dec 29, 2016
@rgacogne rgacogne deleted the dnsdist-qdcount-zero-responses branch December 29, 2016 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant