Hello Daniel

Sorry for the misunderstanding. Yes, I want to dump the current zone contents 
to another zone file.

I found the mistake now. The path for the parameter +outdir must be absolute, 
not relative.
The command `knotc zone-flush example.com. +outdir tmp/` generates the zone 
into /tmp. This is very inconvenient.

# knotc --version
knotc (Knot DNS), version 2.6.3

Regards

> [email protected] hat am 2. Juli 2018 um 21:49 geschrieben:
> 
> 
> On 2018-07-02 20:59, [email protected] 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
> > 
> >> [email protected] 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-editing-zone-file
> >> 
> >> Regards,
> >> Daniel
> >> 
> >> On 2018-06-30 22:33, [email protected] 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
-- 
https://lists.nic.cz/cgi-bin/mailman/listinfo/knot-dns-users

Reply via email to