This add a useOrigin option to zone type. It is a boolean, equals to false by default.
By default, it changes nothing to the actual result of toString.
If set to true, this change the toString behaviour to add $ORIGIN directive, and use @ as domain name for the zone itself.
writeRecord has been patched accordingly if called with @ as zone name.
This add a
useOrigin
option tozone
type. It is a boolean, equals tofalse
by default. By default, it changes nothing to the actual result oftoString
.If set to true, this change the
toString
behaviour to add$ORIGIN
directive, and use@
as domain name for the zone itself.writeRecord
has been patched accordingly if called with@
as zonename
.This should address #17
I had the need for a RPZ zone.