Hello Zdenek,

you miss the context of the list character of the value.

Am 07.12.20 um 09:04 schrieb Zdenek Novy:
> Hi Libor,
> conf-get after conf-commit returns the same value as before, so the change did
> not really happen.
>
> # knotc conf-get template[default].notify
>  > template[default].notify = 1 2 3 4 5 6 7 8 9
> # knotc conf-begin
>  > OK
> # knotc conf-set -b template[default].notify 1 2 4 5 6 7 8 9
>  > OK
> # knotc conf-get template[default].notify
>  > template[default].notify = 1 2 3 4 5 6 7 8 9
> # knotc conf-commit
>  > OK
> # knotc conf-begin
>  > OK
> # knotc conf-get template[default].notify
>  > template[default].notify = 1 2 3 4 5 6 7 8 9
> # knotc conf-abort
>  > OK

If you want to remove an entry from the list, you should unset this entry only.

See the following example, where remove i"3" from the notify value with 
conf-unset

knotc> conf-read template[test]
template.id = test
template[test].notify = 1 2 3 4 5
knotc> conf-begin
OK
knotc> conf-unset template[test].notify "3"
OK
knotc> conf-diff
-template[test].notify = 1 2 3 4 5
+template[test].notify = 1 2 4 5
knotc> conf-commit
OK
knotc>
knotc> conf-read template[test]
template.id = test
template[test].notify = 1 2 4 5

Hope that helps,

Frank
--
Frank Matthieß                             Mail: [email protected]
                                           phone:       +49 521 44 81 58 17
                  GnuPG: 9F81 BD57 C898 6059 86AA  0E9B 6B23 DE93 01BB 63D1

virtion GmbH                                 Südring 11, DE 33647 Bielefeld
Geschäftsführer: Michael Kutzner
Handelsregister HRB 40374, Amtsgericht Bielefeld,    USt-IdNr.: DE278312983
--
https://lists.nic.cz/mailman/listinfo/knot-dns-users

Reply via email to