]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
default API socket update
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 14 Nov 2024 18:45:41 +0000 (19:45 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 18 Nov 2024 11:58:34 +0000 (12:58 +0100)
- tests/packaging/interactive
- etc/config/config.yaml
- documentation

doc/kresctl.8.in
doc/user/config-overview.rst
doc/user/manager-api.rst
doc/user/manager-client.rst
etc/config/config.yaml
tests/packaging/interactive/etag.sh
tests/packaging/interactive/metrics.sh

index 538356afce243a9f973f37e264ac678e52640d5a..d8770ca074b7d0e384e9f3e541ca69fa99c96516 100644 (file)
@@ -32,7 +32,7 @@ The available options are:
 .B \-s\fI <api_socket>\fR, \fB\-\-socket \fI<api_socket>
 
 Specify how to connect to a running Knot Resolver. Accepts path to Unix-domain
-socket  or \fIhost:port\fR. Defaults to \fI/var/run/knot-resolver/manager.sock\fR
+socket  or \fIhost:port\fR. Defaults to \fI/var/run/knot-resolver/kres-api.sock\fR
 
 Some commands do not require communication with the running resolver. In such
 cases, the value of this option is ignored and the command may succeed even
index 15cb9f6290d8ab6df2372f0f88923762f1848201..b42ee0a39ec790c7202dd235e3564f88d8bbd132 100644 (file)
@@ -54,7 +54,7 @@ Getting the JSON Schema
 
 * The JSON schema can be `downloaded here <_static/config.schema.json>`_ (valid only for the version of the resolver this documentation was generated for).
 * The :ref:`kresctl schema <manager-client>` command outputs the JSON schema of the currently installed version as well. It does not require a running resolver.
-* The JSON schema can also be obtained from a running resolver by sending a HTTP GET request to the path ``/schema`` on the :ref:`management API <manager-api>` (by default a Unix socket at ``/var/run/knot-resolver/manager.sock``).
+* The JSON schema can also be obtained from a running resolver by sending a HTTP GET request to the path ``/schema`` on the :ref:`management API <manager-api>` (by default a Unix socket at ``/run/knot-resolver/kres-api.sock``).
 
 .. tip::
 
index 21efb350b3ddd4083be3e89950dd8b2b4485681a..db7754e6f84b5b5686ff9dfaa29a0857506e7776 100644 (file)
@@ -11,7 +11,7 @@ Management HTTP API
 ===================
 
 You can use HTTP API to dynamically change configuration of already running Knot Resolver.
-By default the API is configured as UNIX domain socket located in the resolver's rundir ``/var/run/knot-resolver/manager.sock``.
+By default the API is configured as UNIX domain socket located in the resolver's rundir ``/run/knot-resolver/kres-api.sock``.
 This socket is used by ``kresctl`` utility in default.
 
 The API setting can be changed only in ``/etc/knot-resolver/config.yaml`` configuration file:
index 61ff2fff0a658ccfbd7586092963d9f9a1cb13e2..abeab2c93c1cc01e0e4d03a705d50a22176ff1ea 100644 (file)
@@ -34,7 +34,7 @@ where to look for the API.
 
 If the :ref:`management <manager-api>` key is not present in the configuration
 file, ``kresctl`` attempts to connect to the
-``/var/run/knot-resolver/manager.sock`` Unix-domain socket, which is the
+``/run/knot-resolver/kres-api.sock`` Unix-domain socket, which is the
 Manager's default communication channel.
 
 By default, ``kresctl`` tries to find the correct communication channel in
index cf4da9291f3360c42617699db2365e6464d3de0a..771a931f0bb87218c5fc0fb047491e34a4570614 100644 (file)
@@ -8,4 +8,4 @@ network:
   listen:
     - interface: 127.0.0.1@53
 management:
-  unix-socket: /run/knot-resolver/manager.sock
+  unix-socket: /run/knot-resolver/kres-api.sock
index 3a9de46cc711170682aa7beb453ca030130a8701..7038e00699add199d599fbc1b28e9bd2c1879816 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-socket_opt="--unix-socket /var/run/knot-resolver/manager.sock"
+socket_opt="--unix-socket /run/knot-resolver/kres-api.sock"
 
 echo "  etag"
 etag="$(curl --silent $socket_opt --fail http://localhost:5000/v1/config -o /dev/null -v 2>&1 | grep ETag | sed 's/< ETag: //;s/\s//')"
index 63ac035d21d27ca56955ac8a54a159b830e80dae..99b21124d6f873978663a209b02869b70ce1c483 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-curl --silent --fail --unix-socket /var/run/knot-resolver/manager.sock http://localhost/metrics > /dev/null
+curl --silent --fail --unix-socket /run/knot-resolver/kres-api.sock http://localhost/metrics > /dev/null
 
 kresctl metrics
 if [ "$?" -ne "0" ]; then