diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-07-04 13:31:06 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-07-04 13:31:06 +0200 |
commit | 3f872798172ecdf292214552bfe1f3620a5e1713 (patch) | |
tree | d04a7f6ac3211896dce4649a9fc7e20ef43fdab2 /samples | |
parent | man: fix typo (diff) | |
download | knot-3f872798172ecdf292214552bfe1f3620a5e1713.tar.xz knot-3f872798172ecdf292214552bfe1f3620a5e1713.zip |
Use Debian variant of knot.sample.conf (fixes #66)
Diffstat (limited to 'samples')
-rw-r--r-- | samples/knot.sample.conf.in | 58 |
1 files changed, 53 insertions, 5 deletions
diff --git a/samples/knot.sample.conf.in b/samples/knot.sample.conf.in index 5ef43bc65..5926fd318 100644 --- a/samples/knot.sample.conf.in +++ b/samples/knot.sample.conf.in @@ -6,19 +6,67 @@ # system { + # Identity of the server (see RFC 4892). identity "@package@ @version@"; + + # User for running server + # May also specify user.group (e.g. knot.knot) + user knot.knot; + + # Working directory of the server + # Used to store compiled zones and PID file + # default: ${sharedstatedir}/knot, configured with --with-storage + # storage "/var/lib/knot"; + + # Directory for storing run-time data + # default: ${localstatedir}/run/knot, configured with --with-rundir + # rundir "/var/run/knot"; } interfaces { - my-iface { address 127.0.0.1@53533; } + all_ipv4 { + address 0.0.0.0; + port 53; + } + all_ipv6 { + address [::]; + port 53; + } +} + +control { + # Specifies interface, syntax is exactly the same as in 'interfaces' section + # Default: $(run_dir)/knot.sock + listen-on "knot.sock"; + + # As an alternative, you can use an IPv4/v6 address and port + # listen-on { address 127.0.0.1@5533; } + + # Specifies ACL list for remote control + # Same syntax as for ACLs in zones + # List of remotes or groups delimited by comma + # Notice: keep in mind that ACLs bear no effect with UNIX sockets + # allow server0, admins; } zones { - example.com { - file "@sysconfdir@/example.com.zone"; - } +# example.com { +# file "@sysconfdir@/example.com.zone"; +# } } log { - syslog { any info, notice, warning, error; } + syslog { + # log errors of any category + any error; # for <category> and <severity> see above + # log also warnings and notices from category 'zone' + zone warning, notice; + # log info from server + server info; + } + + # Log fatal, warnings and errors to stderr + stderr { + any error, warning; + } } |