From 6832843371863d1a4919f98bb003723047681c16 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Mon, 20 Jan 2020 10:46:00 +0100 Subject: [PATCH] doc: update man kresd.8 --- doc/kresd.8.in | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/doc/kresd.8.in b/doc/kresd.8.in index 77b102f94..3b194c845 100644 --- a/doc/kresd.8.in +++ b/doc/kresd.8.in @@ -46,8 +46,6 @@ loss of cache entries. In multi-user scenario a shared cache is potential privacy/security issue, with kresd each user can have resolver cache in their private directory and use it in similar fashion to keychain. -By default, no configuration is needed, only a directory where the daemon can store -runtime data (cache, control sockets, ...) .P To use a locally running .B kresd @@ -61,36 +59,14 @@ into .IR resolv.conf (5) and start .B kresd -.PP -.nf -.RS 6n -$ kresd -a 127.0.0.1 -[system] interactive mode -> -.RE -.fi -.PP -.P -The daemon may be configured also as a plain forwarder using query policies, that requires -creating a file -.B config -in daemon runtime directory. See \fIdaemon/README.md\fR for more information about interacting -with CLI and configuration file options, or visit -.B https://knot-resolver.readthedocs.io -online documentation. -.PP -.nf -.RS 6n -# Create a basic forwarder configuration -$ cat << EOF > config -modules = { 'policy' } -policy.add(policy.all(policy.FORWARD('192.168.1.1'))) -$ kresd -a 127.0.0.1 -EOF -.RE -.fi -.PP + .P +The daemon may be configured also as a plain forwarder using query policies. +This requires using a config file. Please refer to documentation for +configuration file options. It is available at +\fIhttps://knot-resolver.readthedocs.io\fR or in package documentation +(available as knot-resolver-doc package in most distributions). + The available CLI options are: .TP .B \-a\fI addr[@port]\fR, \fB\-\-addr=\fI @@ -112,8 +88,7 @@ Option may be passed multiple times to listen on more file descriptors. .TP .B \-c\fI config\fR, \fB\-\-config=\fI Set the config file with settings for kresd to read instead of reading the -file at the default location (\fIconfig\fR). The syntax is -described in \fIdaemon/README.md\fR. +file at the default location (\fIconfig\fR). .TP .B \-f\fI N\fR, \fB\-\-forks=\fI This option is deprecated since 5.0.0! -- 2.47.2