summaryrefslogtreecommitdiffstats
path: root/samples/knot.sample.conf.in
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2015-02-28 14:18:53 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2015-04-09 09:22:08 +0200
commitb533bb405778037bfe2bce5761726ddda016d037 (patch)
tree60cdf18fc4c94060a8355e0ec4346b0bb72a0c5a /samples/knot.sample.conf.in
parentnamedb: add LMDB specific flag NAMEDB_LMDB_NOTLS (diff)
downloadknot-b533bb405778037bfe2bce5761726ddda016d037.tar.xz
knot-b533bb405778037bfe2bce5761726ddda016d037.zip
Integrate new configuration
Diffstat (limited to 'samples/knot.sample.conf.in')
-rw-r--r--samples/knot.sample.conf.in136
1 files changed, 52 insertions, 84 deletions
diff --git a/samples/knot.sample.conf.in b/samples/knot.sample.conf.in
index ede3db3da..b967fa377 100644
--- a/samples/knot.sample.conf.in
+++ b/samples/knot.sample.conf.in
@@ -1,89 +1,57 @@
#
# This is a sample of a minimal configuration file for Knot DNS.
-#
# For exhaustive list of all options see man 5 knot.conf or refer to user manual.
#
-system {
- # Identity of the server (see RFC 4892).
- identity on;
-
- # Version of the server (see RFC 4892)
- version on;
-
- # User for running server
- # May also specify user.group (e.g. knot.knot)
- user knot.knot;
-
- # Directory for storing run-time data
- # e.g. PID file and control sockets
- # default: ${localstatedir}/run/knot, configured with --with-rundir
- # rundir "@run_dir@";
-}
-
-interfaces {
- all_ipv4 {
- address 0.0.0.0;
- port 53;
- }
- all_ipv6 {
- address [::];
- port 53;
- }
-}
-
-control {
- # Default: knot.sock (relative to rundir)
- listen-on "knot.sock";
-
- # As an alternative, you can use an IPv4/v6 address and port
- # Same syntax as for 'interfaces' items
- # 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;
-}
-
-#remotes {
-# master0 {
-# address 198.51.100.1@53;
-# }
-# slave0 {
-# address 203.0.113.1@53;
-# }
-#}
-
-zones {
-# This is a default directory to place slave zone files, journals etc.
-# default: ${localstatedir}/lib/knot, configured with --with-storage
-# storage "@storage_dir@";
-#
-# Example master zone
-# example.com {
-# file "@config_dir@/example.com.zone";
-# xfr-out slave0;
-# notify-out slave0;
-# }
-#
-# Example slave zone
-# example.net {
-# file "@storage_dir@/example.net.zone
-# xfr-in master0;
-# notify-in master0;
-# }
-}
-
-log {
- syslog {
- # Log info and more serious events to syslog
- any info;
- }
-
- # Log warnings, errors and criticals to stderr
- stderr {
- any warning;
- }
-}
+server:
+ # Identity of the server.
+ identity: "Knot DNS"
+
+ # Version of the server (automatic value).
+ version: ""
+
+ # Listening interfaces (all configured IPv4 and IPv6 interfaces).
+ listen: 0.0.0.0@53
+ listen: ::@53
+
+remote:
+ - id: slave
+ address: 203.0.113.1@53
+
+ - id: master
+ address: 198.51.100.1@53
+
+acl:
+ - id: acl_slave
+ address: 203.0.113.1
+ action: xfer
+
+ - id: acl_master
+ address: 198.51.100.1
+ action: notify
+
+template:
+ - id: default
+ storage: "@storage_dir@"
+
+zone:
+ # Master zone.
+ - domain: example.com
+ file: "@storage_dir@/example.com.zone"
+ notify: slave
+ acl: acl_slave
+
+ # Slave zone.
+ - domain: example.net
+ file: "@storage_dir@/example.net.zone"
+ master: master
+ acl: acl_master
+
+log:
+ # Log info and more serious events to syslog.
+ - to: syslog
+ any: info
+
+ # Log warnings, errors and criticals to stderr.
+ - to: stderr
+ any: warning