Nsd3 as seconday, and the zonefile

I noticed that nsd (at least 3.0.6) when configured as secondary, no
longer stores the zonefiles in "plaintext". I assume all the data is
only stored in the nsd.db file.

However, the config for a zone still requires the zonefile: to be
present or else nsd fails with:

/etc/nsd/nsd.zones:10: error: previous zone has no zonefile

I personally would like to see nsd save the zone files in plaintext
even when used as a secondary. It makes it easier to verify things
for the DNS admin. But if that is not going to be implemented, then
it should not insist on a zonefile keyword in a seconday zone.

Paul

Hi,

Ahh. of course..... Thanks Simon.

That created most of the files, and then died:

Program received signal SIGSEGV, Segmentation fault.
0x08051622 in main (argc=Cannot access memory at address 0x1
) at nsd-patch.c:354
354 printf("zone %s had not changed.\n",
(gdb) bt full
#0 0x08051622 in main (argc=Cannot access memory at address 0x1
) at nsd-patch.c:354
        c = <value optimized out>
        configfile = 0xbfddcb92 "/etc/nsd/nsd.conf"
        difffile = 0x1 <Address 0x1 out of bounds>
        options = (nsd_options_t *) 0x14
        db = <value optimized out>
        zone = (struct zone *) 0x81161c4
        commit_log = (struct diff_log *) 0x81d96d4
        debug_list_diff = 0
        force_write = 0

The diff file was specified via the nsdc patch command as "-x /var/lib/nsd/ixfr.db"
and is available there:
-rw-r--r-- 1 nsd nsd 607249 Nov 7 19:30 /var/lib/nsd/ixfr.db

But the pointer to the difffile seems to have gotten corrupted.

Is there anything else I can supply to assist debugging this?

Paul

Hi Paul,

Can you print the contents of the zone variable?
Also, if you could give me a (small) way to reproduce this, a config
file, nsd.db, ixfr.db file? (send it off list)

Best regards,
   Wouter

Paul Wouters wrote:

In private communications with Paul we found out that this is fixed in
our development branch and it will be part of the next release (3.0.7).

Regards,

Mark

Paul Wouters wrote: