[nsd-users] nsd segfaults when serving a TXT record with two strings

Stephane Bortzmeyer bortzmeyer at nic.fr
Tue Jul 5 10:15:19 UTC 2011


On Mon, Jul 04, 2011 at 05:15:12PM +0200,
 Stephane Bortzmeyer <bortzmeyer at nic.fr> wrote 
 a message of 15 lines which said:

> This zone file, which seems legal (two strings in one TXT record, see
> RFC 1035, section 3.3.14 which says "one or more"):
> 
> TXT     "Name of Facility or similar" "City, Country"
> 
> crashes nsd when queried with QTYPE=TXT or ANY:

OK, problem solved. This happened when running a recent version of the
nsd daemon with a database compiled by an old version of
zonec. Nothing in the database tells the daemon that the format is
different. TXT records are stored in an unexpected way => crash.

So, always check you use the right zonec. Its path seems hardcoded in
nsdc so setting PATH does not help.

[Analysis and solution by Wouter Wijngaards.]



More information about the nsd-users mailing list