fixes in unbound
This commit is contained in:
parent
e4347eeb4f
commit
7066bee4ca
2 changed files with 45 additions and 0 deletions
30
templates/unbound.conf.j2
Normal file
30
templates/unbound.conf.j2
Normal file
|
@ -0,0 +1,30 @@
|
|||
server:
|
||||
interface: {{ query('community.general.dig', inventory_hostname, 'qtype=A') | first }}
|
||||
port: 5335
|
||||
access-control: 192.168.0.0/16 allow_snoop
|
||||
verbosity: 2
|
||||
|
||||
use-syslog: no
|
||||
logfile: "/var/log/unbound/unbound.log"
|
||||
log-time-ascii: yes
|
||||
statistics-cumulative: yes
|
||||
|
||||
# Optimization
|
||||
num-threads: 12
|
||||
msg-cache-slabs: 8
|
||||
rrset-cache-slabs: 8
|
||||
infra-cache-slabs: 8
|
||||
key-cache-slabs: 8
|
||||
|
||||
rrset-cache-size: 250m
|
||||
msg-cache-size: 125m
|
||||
|
||||
so-reuseport: yes
|
||||
|
||||
minimal-responses: yes
|
||||
|
||||
prefetch: yes
|
||||
prefetch-key: yes
|
||||
|
||||
serve-expired: yes
|
||||
cache-max-ttl: 3600
|
Loading…
Add table
Add a link
Reference in a new issue