max-cache-ttl integer; transfer-format ( many-answers | one-answer ); max-cache-size size_no_default; check-names string string; // not implemented cache-file quoted_string; allow-query { address_match_element; ... }; allow-transfer { address_match_element; ... }; allow-update-forward...
max-cache-size:设置缓存的最大大小。 max-cache-ttl:设置缓存条目的最大生存时间。 min-cache-ttl:设置缓存条目的最小生存时间。 示例配置: 在/etc/bind/named.conf.options文件中添加或修改以下选项: plaintext options { // ... 其他配置 ... max-cache-size 100m; // 设置缓存最大大小为100MB max-...
max-cache-ttl <integer>;; transfer-format ( many-answers | one-answer ); max-cache-size <size_no_default>;; check-names <string>; <string>;; // not implemented cache-file <quoted_string>;; allow-query { ;; … }; allow-transfer { ;; … }; allow-update-forwarding { ;; … };...
如果要限制服务器使用的内存量,可以使用max-cache-size和recursive-clients选项。 files 服务器可以同时打开的最大文件数。默认是unlimited。 stacksize 服务器可以使用最大的堆栈内存量。默认值为default。 H.服务器资源限制 下列选项设定了服务器资源使用限制,这是由域名服务内部做的而不是操作系统设定的。 max-ixfr...
[ max-ncache-ttl number; ] [ max-cache-ttl number; ] [ sig-validity-interval number ; ] [ min-roots number; ] [ use-ixfr yes_or_no ; ] [ provide-ixfr yes_or_no; ] [ request-ixfr yes_or_no; ] [ treat-cr-as-space yes_or_no ; ] ...
[ max-cache-size size_spec ; ] [ match-mapped-addresses yes_or_no; ] }; version 回答针对服务器版本的请求时的内容。缺省返回的是服务器的真实版本。 directory 服务器的工作目录。配置文件中所有使用的相对路径,指的都是在这里配置的目录下。大多数服务器的输出文件(如named.run)都缺省生成在这个目录下...
MAX_CACHE_SIZE The amount of RAM used by the server to store results. You can use relative (percent) or absolute (bytes) values. Examples: MAX_CACHE_SIZE=30%(Use 30% of the systems memory) MAX_CACHE_SIZE=512M(Use 512 Megabytes) ...
max-cache-size <size_no_default>;; check-names <string>; <string>;; // not implemented cache-file <quoted_string>;; allow-query { ;; ... }; allow-transfer { ;; ... }; allow-update-forwarding { ;; ... }; allow-notify { ;; ... }; notify <notifytype>;; notify-source ( ...
max-cache-size 536870912; max-cache-ttl 172800; max-ncache-ttl 518400; allow-query { localhost; 192.168.50.0/24; }; allow-query-cache{any;}; forward first; forwarders { 127.0.2.1 port 4040; }; recursion yes; dnssec-enable yes; dnssec-validation yes; managed-keys-directory "/var/named/...