Add config

This commit is contained in:
BBaoVanC 2022-04-25 18:09:32 -05:00
parent 2b99f8ff51
commit ef50cdbd07
4 changed files with 49 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
unbound_control.key
unbound_control.pem
unbound_server.key
unbound_server.pem

10
unbound.conf Normal file
View File

@ -0,0 +1,10 @@
# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.
include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"

31
unbound.conf.d/boba.conf Normal file
View File

@ -0,0 +1,31 @@
# Based on https://docs.pi-hole.net/guides/dns/unbound/#configure-unbound
# See https://git.boba.best/configs/unbound
server:
verbosity: 0
#interface: 0.0.0.0
#interface: ::
interface: 127.0.0.1
interface: ::1
port: 53
do-ip4: yes
do-udp: yes
do-tcp: yes
do-ip6: yes
prefer-ip6: yes
# Reduce EDNS reassembly buffer size.
# Suggested by the unbound man page to reduce fragmentation reassembly problems
edns-buffer-size: 1472
# Perform prefetching of close to expired message cache entries
# This only applies to domains that have been frequently queried
prefetch: yes
# One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
#num-threads: 1
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: 172.16.0.0/12
private-address: 10.0.0.0/8
private-address: fd00::/8
private-address: fe80::/10

View File

@ -0,0 +1,4 @@
server:
# The following line will configure unbound to perform cryptographic
# DNSSEC validation using the root trust anchor.
auto-trust-anchor-file: "/var/lib/unbound/root.key"