Initial commit

This commit is contained in:
Philip (a-0) 2022-07-26 19:16:49 +02:00
commit 97737b3186
7 changed files with 92 additions and 0 deletions

29
templates/default.conf.j2 Normal file
View 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

View file

@ -0,0 +1,9 @@
/var/log/unbound/unbound.log {
daily
missingok
rotate 30
compress
delaycompress
notifempty
create 640 root root
}