Displaying 1 result from an estimated 1 matches for "answer_buffer_size".
2009 Jun 29
2
openbsd-compat/getrrsetbyname.c: answer buffer size too large for EDNS0 and glibc
...e to 0.
BIND appears to ignore it while Unbound returns a server failure.
glibc's source suggests that it should retry the query without EDNS0 but
it does not. Maybe a timeout triggers earlier.
OpenSSH then logs "DNS lookup error: general failure" and continues.
I propose reducing ANSWER_BUFFER_SIZE to 65535. Of course, the
stub-resolver should probably catch this kind of problem, too.
openbsd-compat/getrrsetbyname.c:
[...]
#define ANSWER_BUFFER_SIZE 1024*64
[...]
getrrsetbyname()
[...]
u_char answer[ANSWER_BUFFER_SIZE];
[...]
length = res_query(hostname, (signed int) rdclass...