Previous: control Statement Definition and Grammar, Up: control


A.6.3 Examples

UNIX socket example:

     control {
             listen-on "/var/run/knot/knot.sock";
     }

IPv4 socket example:

     keys {
             knotc-key hmac-md5 "Wg==";
     }
     remotes {
             ctl { address 127.0.0.1; key knotc-key; }
     }
     control {
             listen-on { address 127.0.0.1; }
             allow ctl;
     }