Re: ANY queries to tinydns
Matthew Dempsky <[email protected]> Wed, 31 Mar 2010 09:54:00 -0700
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Mar 31, 2010 at 9:32 AM, David Hubbard <[email protected]> wrote: > Can someone tell me what the official behavior of > tinydns is supposed to be when an ANY query is > sent to it? And preferably when the response > would be and wouldn't be larger than a udp packet. > Using wireshark it reports malformed response on > ANY queries to domains with a lot of records. Try applying the patch below. When tinydns sends a truncated response, it leaves the numrecords fields set to the number of records it wanted to send, not the number actually sent. Some firewalls apparently don't like this behavior though. --- response.c.orig 2010-03-31 09:50:48.000000000 -0700 +++ response.c 2010-03-31 09:50:56.000000000 -0700 @@ -117,5 +117,6 @@ void response_tc(void) { response[2] |= 2; + byte_zero(response + 6,6); response_len = tctarget; }