BIND 9.10 dlz(BDB): slow query times

2014-11-06 Thread ShanyiWan
# lsb_release -a LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.8 (Final) Release: 5.8 Codename: Final # named -V BIND 9.10.1 id:fe66c6b1 built by make with

isc_mem_get question/bug

2014-11-06 Thread Joshua Rogers
Hi, in dnssec-signzone.c, this code appears: filenamelen = strlen(prefix) + strlen(namestr); if (dsdir != NULL) filenamelen += strlen(dsdir) + 1; filename = isc_mem_get(mctx, filenamelen + 1); if (filename == NULL)

Re: BIND 9.10 dlz(BDB): slow query times

2014-11-06 Thread Evan Hunt
On Fri, Nov 07, 2014 at 12:27:55AM +0800, ShanyiWan wrote: 10+ domains, 50 records, Most of the query time in 1-3 seconds, is this normal? DLZ is slow, but it's not that slow. I would guess the delay you're seeing is due to the time it takes to retrieve data from the berkeley DB.

Re: isc_mem_get question/bug

2014-11-06 Thread Evan Hunt
On Fri, Nov 07, 2014 at 04:20:46AM +1100, Joshua Rogers wrote: filenamelen += strlen(dsdir) + 1; The last line, sprintf(filename, %s/, dsdir);. Since / is also added to the buffer, doesn't that mean the buffer will be overflowed by one byte if the dsdir is full? The