I have recently started using unbound dns.
I have configured all the things I need properly. But the server doesn't log when I make a query.
I have no errors in the unbound.conf file
The following is my .conf file
# The server clause sets the main parameters. server: # whitespace is not necessary, but looks cleaner. # verbosity number, 0 is least verbose. 1 is default. verbosity: 1 # print statistics to the log (for every thread) every N seconds. # Set to "" or 0 to disable. Default is disabled. statistics-interval: 5 interface: 192.168.116.134 # port to answer queries from port: 53 cache-min-ttl: 400 cache-max-ttl: 86400 # Enable IPv4, "yes" or "no". do-ip4: yes # Enable IPv6, "yes" or "no". # do-ip6: yes # Enable UDP, "yes" or "no". do-udp: yes # Enable TCP, "yes" or "no". do-tcp: yes access-control: 0.0.0.0/0 allow # chroot: "/etc/unbound" # username: "unbound" # directory: "/etc/unbound" # the log file, "" means log to stderr. # Use of this option sets use-syslog to "no". logfile: "/var/log/unbound/unbound.log" forward-zone: name: "." forward-addr: 188.8.131.52 forward-addr: 184.108.40.206
The lig file does exist in the given directory and I have made the unbound user its owner using
chown, but when I make a query the log file is still empty.
Platform: Ubuntu 18 Desktop