]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
python/libknot: add documentation for zone-serial-set
authorJan Doskočil <jan.doskocil@nic.cz>
Thu, 23 Oct 2025 12:11:25 +0000 (14:11 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 24 Oct 2025 19:27:52 +0000 (21:27 +0200)
python/libknot/README.md

index efe7adabe50abfa98bda521caacce65f4bbee046..181693bd837def069e0c4b445bb2d1e928058c93 100644 (file)
@@ -162,6 +162,10 @@ Use `@` as `OWNER` if you want to denote `ZONE` itself as the owner.
 * `zone-stats([ZONE], [SECTION, [ITEM]], [FLAGS="F"])`
   + `SECTION` stores the module, `ITEM` stores the counter
   + the `F` flag specifies to include 0 counters in server's response
+* `zone-serial-set([ZONE], [FLAGS="F"], [TYPE="+"|"=", DATA])`
+  + the `F` flag forces serial change, when semantic checks would otherwise fail
+  + the `TYPE` section controls, whether the serial is *increased* (+) or *set*
+    (=) to the value provided in `DATA`.
 
 #### Configuration