• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Unbound Logs

May 24, 2023

How to enable unbound logs.

Add these line in /etc/unbound/unbound.conf.

chroot: ""
logfile: /var/log/unbound.log
verbosity: 4
log-queries: yes

chroot: "" logfile: /var/log/unbound.log verbosity: 4 log-queries: yes

Create the log file and set permissions.

touch /var/log/unbound.log
chown unbound:unbound /var/log/unbound.log

touch /var/log/unbound.log chown unbound:unbound /var/log/unbound.log

Restart the unbound service.

systemctl restart unbound

systemctl restart unbound

Check status.

systemctl status unbound

systemctl status unbound

Finally, check the logs.

tail -f /var/log/unbound.log

tail -f /var/log/unbound.log

Filed Under: Linux Tagged With: logs, unbound

Subscribe Via Email

  • Home
  • About
  • Search

Copyright © 2023