我最近开始使用unbound dns。
我已经正确配置了所有需要的东西。但是当我进行查询时,服务器不会记录日志。
我的unbound.conf文件中没有错误。
以下是我的.conf文件。
我已经正确配置了所有需要的东西。但是当我进行查询时,服务器不会记录日志。
我的unbound.conf文件中没有错误。
以下是我的.conf文件。
# 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: 8.8.4.4
forward-addr: 8.8.8.8
在给定的目录中确实存在lig文件,并且我已经使用chown
将unbound用户设置为其所有者,但是当我进行查询时,日志文件仍然为空。
平台:Ubuntu 18桌面版