Hi Laura,

What does Knot log (in the debug level)? E.g.:
2021-08-07T17:15:32+0200 debug: control, item 'server.versionX'
2021-08-07T17:15:32+0200 debug: control, command 'conf-set' (invalid item)

Daniel

On 07. 08. 21 15:40, Laura Smith wrote:
Hi,

For various reasons I need to write a Go wrapper around knotc conf.

The problem is I am seeing weird behaviour (the below is stdout from my Go 
script):

########
Command being run: /usr/sbin/knotc conf-begin
OK
Command being run: /usr/sbin/knotc conf-set 'server.version' '299'error: 
(invalid item) 'server.version' = '299'
Command being run: /usr/sbin/knotc conf-abortOK
########

If I take the "usr/sbin/knotc conf-set 'server.version' '299'" string generated 
by Go and paste it onto CLI, it returns OK ?

I have tried adding "-v" flag but that does not produce any interesting output.

Any idea where I might be going wrong here ? Why am I getting "error: (invalid 
item)" when Go executes the command, but not when I run it manually ?

Thanks !

--
https://lists.nic.cz/mailman/listinfo/knot-dns-users

Reply via email to