Please follow the below template, it will help us to help you!
Expected Behaviour:
[I have a problem to install unbound. I followed the guide from wiki step by step Redirecting...]
Actual Behaviour:
journalctl -u unbound
-- Logs begin at Wed 2018-10-31 16:58:48 CST, end at Wed 2018-10-31 17:46:39 CST. --
Oct 31 17:10:02 dns systemd[1]: Starting Unbound DNS server...
Oct 31 17:10:02 dns package-helper[10966]: /var/lib/unbound/root.key does not exist, copying from /usr/share/dns/root.key
Oct 31 17:10:03 dns package-helper[10966]: /var/lib/unbound/root.key has content
Oct 31 17:10:03 dns package-helper[10966]: success: the anchor is ok
Oct 31 17:10:03 dns unbound[10971]: [1540977003] unbound[10971:0] error: can't bind socket: Address already in use for ::1
Oct 31 17:10:03 dns unbound[10971]: [1540977003] unbound[10971:0] fatal error: could not open ports
Oct 31 17:10:03 dns systemd[1]: **unbound.service: Main process exited, code=exited, status=1/FAILURE**
Oct 31 17:10:03 dns systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Oct 31 17:10:03 dns systemd[1]: **Failed to start Unbound DNS server.**
Oct 31 17:10:03 dns systemd[1]: unbound.service: Service hold-off time over, scheduling restart.
Oct 31 17:10:03 dns systemd[1]: unbound.service: Scheduled restart job, restart counter is at 1.
Oct 31 17:10:03 dns systemd[1]: Stopped Unbound DNS server.
Oct 31 17:10:03 dns systemd[1]: Starting Unbound DNS server...
Oct 31 17:10:04 dns package-helper[11049]: /var/lib/unbound/root.key has content
Oct 31 17:10:04 dns package-helper[11049]: success: the anchor is ok
Oct 31 17:10:04 dns unbound[11145]: [1540977004] unbound[11145:0] error: can't bind socket: Address already in use for ::1
Oct 31 17:10:04 dns unbound[11145]: [1540977004] unbound[11145:0] fatal error: could not open ports
Oct 31 17:10:04 dns systemd[1]: **unbound.service: Main process exited, code=exited, status=1/FAILURE**
Oct 31 17:10:04 dns systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Oct 31 17:10:04 dns systemd[1]: **Failed to start Unbound DNS server.**
Oct 31 17:10:05 dns systemd[1]: unbound.service: Service hold-off time over, scheduling restart.
Oct 31 17:10:05 dns systemd[1]: unbound.service: Scheduled restart job, restart counter is at 2.
Oct 31 17:10:05 dns systemd[1]: Stopped Unbound DNS server.
Oct 31 17:10:05 dns systemd[1]: Starting Unbound DNS server...
Oct 31 17:10:05 dns package-helper[11222]: /var/lib/unbound/root.key has content
Oct 31 17:10:05 dns package-helper[11222]: success: the anchor is ok
Oct 31 17:10:05 dns unbound[11267]: [1540977005] unbound[11267:0] error: can't bind socket: Address already in use for ::1
Oct 31 17:10:05 dns unbound[11267]: [1540977005] unbound[11267:0] fatal error: could not open ports
Oct 31 17:10:05 dns systemd[1]: **unbound.service: Main process exited, code=exited, status=1/FAILURE**
Oct 31 17:10:05 dns systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Oct 31 17:10:05 dns systemd[1]: **Failed to start Unbound DNS server.**
Oct 31 17:10:06 dns systemd[1]: unbound.service: Service hold-off time over, scheduling restart.
Oct 31 17:10:06 dns systemd[1]: unbound.service: Scheduled restart job, restart counter is at 3.
Oct 31 17:10:06 dns systemd[1]: Stopped Unbound DNS server.
Oct 31 17:10:06 dns systemd[1]: Starting Unbound DNS server...
Oct 31 17:10:06 dns package-helper[11337]: /var/lib/unbound/root.key has content
Oct 31 17:10:06 dns package-helper[11337]: success: the anchor is ok
Oct 31 17:10:06 dns unbound[11370]: [1540977006] unbound[11370:0] error: can't bind socket: Address already in use for ::1
Oct 31 17:10:06 dns unbound[11370]: [1540977006] unbound[11370:0] fatal error: could not open ports
Oct 31 17:10:06 dns systemd[1]: **unbound.service: Main process exited, code=exited, status=1/FAILURE**
Oct 31 17:10:06 dns systemd[1]: **unbound.service: Failed with result 'exit-code'.**
Oct 31 17:10:06 dns systemd[1]: **Failed to start Unbound DNS server.**
Oct 31 17:10:07 dns systemd[1]: unbound.service: Service hold-off time over, scheduling restart.
Oct 31 17:10:07 dns systemd[1]: unbound.service: Scheduled restart job, restart counter is at 4.
Oct 31 17:10:07 dns systemd[1]: Stopped Unbound DNS server.]_
server:
logfile: "/var/log/unbound/unbound.log"
verbosity: 0
port: 5353
do-ip4: yes
do-udp: yes
do-tcp: yes
# May be set to yes if you have IPv6 connectivity
do-ip6: no
# Use this only when you downloaded the list of primary root servers!
root-hints: "/var/lib/unbound/root.hints"
# Trust glue only if it is within the servers authority
harden-glue: yes
# Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
harden-dnssec-stripped: yes
# Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
# see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
use-caps-for-id: no
# Reduce EDNS reassembly buffer size.
# Suggested by the unbound man page to reduce fragmentation reassembly problems
edns-buffer-size: 1472
# TTL bounds for cache
cache-min-ttl: 3600
cache-max-ttl: 86400
# 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
num-threads: 1
# Ensure kernel buffer is large enough to not loose 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
Once again, force the following optional content to be forced once. Some are normal.
Optional: Download the list of primary root servers (serving the domain .). Unbound ships its own list but we can also download the most recent list and update it whenever we think it is a good idea. Note: there is no point in doing It more often then every 6 months.