You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+16-8
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,14 @@ Bind caching DNS server based on Debian slim with support for DNS forwarders, in
54
54
5.[DNS_PTR](#dns_ptr)
55
55
6.[DNSSEC_VALIDATE](#dnssec_validate)
56
56
7.[DNS_FORWARDER](#dns_forwarder)
57
-
8.[TTL_TIME](#ttl_time)
58
-
9.[REFRESH_TIME](#refresh_time)
59
-
10.[RETRY_TIME](#retry_time)
60
-
11.[EXPIRY_TIME](#expiry_time)
61
-
12.[MAX_CACHE_TIME](#max_cache_time)
62
-
13.[ALLOW_QUERY](#allow_query)
63
-
14.[ALLOW_RECURSION](#allow_recursion)
57
+
8.[MAX_CACHE_SIZE](#max_cache_size)
58
+
9.[TTL_TIME](#ttl_time)
59
+
10.[REFRESH_TIME](#refresh_time)
60
+
11.[RETRY_TIME](#retry_time)
61
+
12.[EXPIRY_TIME](#expiry_time)
62
+
13.[MAX_CACHE_TIME](#max_cache_time)
63
+
14.[ALLOW_QUERY](#allow_query)
64
+
15.[ALLOW_RECURSION](#allow_recursion)
64
65
2.[Default mountpoints](#default-mountpoints)
65
66
3.[Default ports](#default-ports)
66
67
4.[Examples](#examples)
@@ -96,7 +97,8 @@ Bind caching DNS server based on Debian slim with support for DNS forwarders, in
96
97
|`DNS_PTR`| string || Comma separated list of PTR records (reverse DNS). |
97
98
|`DNSSEC_VALIDATE`| string |`no`| Control the behaviour of DNSSEC validation. The default is to not validate: `no`. Other possible values are: `yes` and `auto`. |
98
99
|`DNS_FORWARDER`| string || Specify a comma separated list of IP addresses as custom DNS resolver. This is useful if your LAN already has a DNS server which adds custom/internal domains and you still want to keep them in this DNS server<br/>Example: `DNS_FORWARDER=8.8.8.8,8.8.4.4`|
99
-
|`TTL_TIME`| int |`3600`| (Time in seconds) See [BIND TTL](http://www.zytrax.com/books/dns/apa/ttl.html) and [BIND SOA](http://www.zytrax.com/books/dns/ch8/soa.html)|
100
+
|`MAX_CACHE_SIZE`| size |`90%`| Amount of memory used by the server (cached results) |
101
+
|`ttl_time`| int |`3600`| (time in seconds) see [bind ttl](http://www.zytrax.com/books/dns/apa/ttl.html) and [bind soa](http://www.zytrax.com/books/dns/ch8/soa.html)|
100
102
|`REFRESH_TIME`| int |`1200`| (Time in seconds) See [BIND SOA](http://www.zytrax.com/books/dns/ch8/soa.html)|
101
103
|`RETRY_TIME`| int |`180`| (Time in seconds) See [BIND SOA](http://www.zytrax.com/books/dns/ch8/soa.html)|
102
104
|`EXPIRY_TIME`| int |`1209600`| (Time in seconds) See [BIND SOA](http://www.zytrax.com/books/dns/ch8/soa.html)|
@@ -202,6 +204,12 @@ Some examples
202
204
DNS_FORWARDER='8.8.8.8'
203
205
DNS_FORWARDER='8.8.8.8,192.168.0.10'
204
206
```
207
+
#### MAX_CACHE_SIZE
208
+
The amount of RAM used by the server to store results. You can use relative (percent) or absolute (bytes) values.
209
+
Examples:
210
+
*`MAX_CACHE_SIZE=30%` (Use 30% of the systems memory)
0 commit comments