DS and $ORIGIN

Hi,

I am using NSD 3.2;8 on Ubuntu. It seems that the DS type does not
properly interact with $ORIGIN when a void owner name is provided. In
other words situation 1 and 2 works as expected, but 3 doesn't.

1) Using a subdomain and $ORIGIN works fine
$ORIGIN zonename.
asubdomain DS [arg]

2) Using the complete owner name --with a "." at the end ignores the
$ORIGIN. I think that's fine.
$ORIGIN zonename.
asubdomain.zonename. DS [arg]

3) $ORIGIN is not considered and it looks the the owner name
considered for DS is the latest owner that has been considered.This is
not fine.
$ORIGIN zonename
    DS [arg]

Regards,
Daniel

Here is my file to be signed :

works in conformance with RFC 1035, section 5.1:

  The last two forms represent RRs. If an entry for an RR begins with a
  blank, then the RR is assumed to be owned by the last stated owner. If
  an RR entry begins with a <domain-name>, then the owner name is reset.

You'd need to use '@' to explicitly set the owner to $ORIGIN.

-Peter