aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-08-26 09:12:50 +0700
committerShulhan <ms@kilabit.info>2018-08-26 23:41:47 +0700
commit306f36b5f65a272576727b8081583f3046e22ee1 (patch)
tree20b0e498e5adb45da7c0ddb51dab071f170bc10d /testdata
parentefa8fc0e89e62878a12af7981dacf7bcfdf84ad5 (diff)
downloadrescached-306f36b5f65a272576727b8081583f3046e22ee1.tar.xz
cmd/rescached: add flag "-f" for loading custom configuration
Diffstat (limited to 'testdata')
-rw-r--r--testdata/rescached.cfg95
1 files changed, 95 insertions, 0 deletions
diff --git a/testdata/rescached.cfg b/testdata/rescached.cfg
new file mode 100644
index 0000000..4ea4856
--- /dev/null
+++ b/testdata/rescached.cfg
@@ -0,0 +1,95 @@
+[RESCACHED]
+
+##
+## file.pid:: A path to PID file.
+##
+## Format:: /any/path/to/file
+## Default:: rescached.pid
+##
+
+file.pid=./testdata/rescached.pid
+
+##
+## server.parent:: List of parent DNS servers, separated by commas.
+##
+## Format:: <IP-ADDRESS:PORT> , ...
+## Default address:: 8.8.8.8, 8.8.4.4
+## Default port:: 53
+##
+
+#server.parent=8.8.8.8, 8.8.4.4:53
+
+##
+## server.parent.connection:: Type of connection to parent server.
+##
+## Format:: tcp | udp
+## Default:: udp
+##
+
+server.parent.connection=udp
+#server.parent.connection=tcp
+
+##
+## server.listen:: Local IP address that rescached will listening for client
+## request.
+##
+## Format:: <IP-ADDRESS>:<PORT>
+## Default:: 127.0.0.1:53
+##
+
+server.listen=127.0.0.1:5353
+
+## Uncomment line below if you want to serve rescached to other computers.
+#server.listen=0.0.0.0:53
+
+##
+## server.timeout:: Timeout value, in seconds, for sending and waiting
+## packet from client or parent server.
+## Format:: any number from 300 to 2147483647.
+## Default:: 6
+##
+
+#server.timeout=6
+
+##
+## cache.prune_delay:: Delay for pruning worker.
+## Every N seconds/minutes/hours, rescached will traverse all caches and
+## remove response that has not been accessed less than "cache.threshold".
+##
+## Format:: Duration with time unit. Valid time units are "s", "m", "h".
+## Default:: 1h
+##
+
+#cache.prune_delay = 1h
+
+##
+## cache.threshold:: The duration when the cache will be considered expired.
+##
+## Format:: Duration. Valid time units are "s", "m", "h".
+## Default:: -1h
+##
+
+#cache.threshold = -1h
+
+##
+## hosts_d.path:: If its set, rescached will load all (host) files in path.
+## if its empty, it will skip loading hosts files event in default location.
+##
+## Format : string.
+## Default : /etc/rescached/hosts.d
+##
+
+#hosts_d.path=/etc/rescached/hosts.d
+
+##
+## debug:: If its not zero, rescached will print debugging information to
+## standard output. Valid values are,
+##
+## 0 - log error.
+## 1 - log startup, request, response, and exit status.
+##
+## Format:: Number.
+## Default:: 0
+##
+
+#debug=0