Hi Daniel

Actually, I found the solution in the intervening period.

The Knot docs show single quotes everywhere.

But I discovered they are for the purpose of avoiding shell globbing rather 
than required Knot syntax.

Go code works properly now I told it not to quote wrap (in the background Go 
does not call via shell, but opens a knotc process and feeds args that way).

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Saturday, August 7th, 2021 at 4:22 PM, Daniel Salzman 
<[email protected]> wrote:

> 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
-- 
https://lists.nic.cz/mailman/listinfo/knot-dns-users

Reply via email to