On 2018-07-02 20:59, dptrash(a)arcor.de wrote:
Hello Daniel,
I just want to dump the zone to a file, technically a `knotc zone-dump
zone_name a.out` [1], which does not exist yet. The command `knotc
zone-read zone_name` is almost the output as desired except for the
formatting.
So you want to dump the zone directly by knotc? Or you want to keep the
input zone file
untouched and dump the current zone contents to another zone file, which
can be done via
"knotc zone-flush
example.com. +outdir /tmp"
Daniel
Regards
[1]
https://github.com/CZ-NIC/knot/blob/master/src/knot/zone/zone-dump.c
> daniel.salzman(a)nic.cz hat am 1. Juli 2018 um 14:28 geschrieben:
>
>
> Hello,
>
> It's not clear what is your configuration and what is your goal.
>
> If the zone file synchronization is not disabled or delayed
> (
https://www.knot-dns.cz/docs/2.6/singlehtml/index.html#zonefile-sync),
> the zone file is immediately updated upon any zone change (dynamic
> update,
> zone transfer, DNSSEC signing). So it's up-to-date.
>
> If the zone file synchronization is disabled, still you can dump the
> zone
> manually via `knotc zone-flush zone_name` or `knotc zone-flush
> zone_name
> +outdir=alternative_directory`.
>
> Further reading about zone file manipulation:
>
https://www.knot-dns.cz/docs/2.6/singlehtml/index.html#safe-reading-and-edi…
>
> Regards,
> Daniel
>
> On 2018-06-30 22:33, dptrash(a)arcor.de wrote:
> > Hello
> >
> > How can I dump a zone stored in Knot DNS to a file?
> >
> > DNSSEC signed zones are overwritten, apparently using a zone dump
> > functionality; noticable by the comment ";; Zone dump (Knot DNS
> > 2.6.3)".
> >
> > Regards