unbound: log to journalctl

This commit is contained in:
Yohaï-Eliel BERREBY 2020-04-18 16:23:57 +02:00
parent bfc7d542df
commit 22166bc69b
4 changed files with 6 additions and 5 deletions

View file

@ -49,4 +49,4 @@ upstream_dns_servers:
- "80.67.169.12" # French Data Network (FDN) (ns0.fdn.fr) - "80.67.169.12" # French Data Network (FDN) (ns0.fdn.fr)
- "1.1.1.1" # Cloudflare - "1.1.1.1" # Cloudflare
unbound_log_file: "/var/log/unbound.log"

2
hosts
View file

@ -150,7 +150,7 @@ gs_pve
[dhcp] [dhcp]
#dhcp-fleming.adm.auro.re #dhcp-fleming.adm.auro.re
dhcp-fleming-backup.adm.auro.re #dhcp-fleming-backup.adm.auro.re
#dhcp-pacaterie.adm.auro.re #dhcp-pacaterie.adm.auro.re
#dhcp-pacaterie-backup.adm.auro.re #dhcp-pacaterie-backup.adm.auro.re
#dhcp-edc.adm.auro.re #dhcp-edc.adm.auro.re

View file

@ -18,7 +18,6 @@
dest: /etc/unbound/unbound.conf.d/recursive.conf dest: /etc/unbound/unbound.conf.d/recursive.conf
mode: 0644 mode: 0644
- name: restart unbound after editing config - name: restart unbound after editing config
systemd: systemd:
state: restarted state: restarted

View file

@ -4,11 +4,13 @@ server:
# Timestamps use UTC ASCII instead of UNIX epoch. # Timestamps use UTC ASCII instead of UNIX epoch.
log-time-ascii: yes log-time-ascii: yes
logfile: /var/log/unbound.log
# Only log errors. # Only log errors.
verbosity: 0 verbosity: 0
# "" sends logs to stderr, journalctl will pick things up.
logfile: ""
do-ip4: yes do-ip4: yes
# FIXME: IPv6 deployment... someday... # FIXME: IPv6 deployment... someday...
do-ip6: no do-ip6: no