Initial commit
This commit is contained in:
commit
97737b3186
7 changed files with 92 additions and 0 deletions
29
templates/default.conf.j2
Normal file
29
templates/default.conf.j2
Normal file
|
@ -0,0 +1,29 @@
|
|||
server:
|
||||
interface: {{ unbound_ip4 }}
|
||||
port: {{ unbound_port }}
|
||||
access-control: {{ unbound_ip4_subnet }} allow_snoop
|
||||
verbosity: 2
|
||||
|
||||
logfile: "/var/log/unbound/unbound.log"
|
||||
log-time-ascii: yes
|
||||
statistics-cumulative: yes
|
||||
|
||||
# Optimization
|
||||
num-threads: 3
|
||||
msg-cache-slabs: 2
|
||||
rrset-cache-slabs: 2
|
||||
infra-cache-slabs: 2
|
||||
key-cache-slabs: 2
|
||||
|
||||
rrset-cache-size: 257051306
|
||||
msg-cache-size: 128525653
|
||||
|
||||
so-reuseport: yes
|
||||
|
||||
minimal-responses: yes
|
||||
|
||||
prefetch: yes
|
||||
prefetch-key: yes
|
||||
|
||||
serve-expired: yes
|
||||
cache-max-ttl: 3600
|
9
templates/unbound_logrotate.conf.j2
Normal file
9
templates/unbound_logrotate.conf.j2
Normal file
|
@ -0,0 +1,9 @@
|
|||
/var/log/unbound/unbound.log {
|
||||
daily
|
||||
missingok
|
||||
rotate 30
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
create 640 root root
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue