unbound does not log queries to syslog server after reboot
-
I have log-queries on at dns resolver custom options. When I reboot the server, it will not send any queries to syslog server, only dhcpd messages. When I manually restart dns resolver service after reboot, it will start sending queries. Anyone else can confirm this, so I can make bug report?
Edit: System logs - Settings, has DNS Events on at Remote Syslog Contents
custom options:
server:
log-queries: yes
local-data: "b._dns-sd._udp. IN PTR pc-printer-discovery"
local-data: "lb._dns-sd._udp. IN PTR pc-printer-discovery"
local-data: "b._dns-sd._udp.domain.com IN PTR pc-printer-discovery.domain.com"
local-data: "lb._dns-sd._udp.domain.com IN PTR pc-printer-discovery.domain.com"
local-data: "pc-printer-discovery.domain.com IN NS printers.domain.com"
local-data: "printers.domain.com IN A 172.27.2.2"
local-data: "pc-printer-discovery.domain.com IN A 172.27.2.2"logfile - Service restart at Dec 2 10:47:50
Dec 2 10:45:50 _gateway dhcpleases[4148]: Sending HUP signal to dns daemon(1486)
Dec 2 10:47:21 _gateway dhcpd[5880]: reuse_lease: lease age 89002 (secs) under 25% threshold, reply with unaltered, existing lease for 172.27.7.114
Dec 2 10:47:21 _gateway dhcpd[5880]: DHCPREQUEST for 172.27.7.114 from 3c:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:21 _gateway dhcpd[5880]: DHCPACK on 172.27.7.114 to 3c:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:22 _gateway dhcpd[5880]: reuse_lease: lease age 95854 (secs) under 25% threshold, reply with unaltered, existing lease for 172.27.13.43
Dec 2 10:47:22 _gateway dhcpd[5880]: DHCPREQUEST for 172.27.13.43 from e8:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:22 _gateway dhcpd[5880]: DHCPACK on 172.27.13.43 to e8:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:38 _gateway dhcpd[5880]: reuse_lease: lease age 1995 (secs) under 25% threshold, reply with unaltered, existing lease for 172.27.13.100
Dec 2 10:47:38 _gateway dhcpd[5880]: DHCPREQUEST for 172.27.13.100 from e9:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:38 _gateway dhcpd[5880]: DHCPACK on 172.27.13.100 to e9:xx:xx:xx:xx:xx via bge1.101
Dec 2 10:47:43 _gateway dhcpd[5880]: reuse_lease: lease age 10224 (secs) under 25% threshold, reply with unaltered, existing lease for 172.27.19.132
Dec 2 10:47:43 _gateway dhcpd[5880]: DHCPREQUEST for 172.27.19.132 from 74:xx:xx:xx:xx:xx via bge3.102
Dec 2 10:47:43 _gateway dhcpd[5880]: DHCPACK on 172.27.19.132 to 74:xx:xx:xx:xx:xx via bge3.102
Dec 2 10:47:58 _gateway dhclient[31995]: RENEW
Dec 2 10:47:58 _gateway dhclient[32647]: Creating resolv.conf
Dec 2 10:48:00 _gateway unbound[77610]: [77610:0] notice: init module 0: validator
Dec 2 10:48:00 _gateway unbound[77610]: [77610:0] notice: init module 1: iterator
Dec 2 10:48:00 _gateway unbound[77610]: [77610:3] info: 172.27.14.9 gateway.fe.apple-dns.net. A IN
Dec 2 10:48:00 _gateway unbound[77610]: [77610:0] info: start of service (unbound 1.12.0).
Dec 2 10:48:00 _gateway unbound[77610]: [77610:4] info: 172.27.12.142 login.microsoftonline.com. A IN -
I've added :
in the cusotm options, and restarted pfSEnse.
I use a remote syslogger.....and you're right, after a reboot, no unbound messages.
After manually restarting unbound, the syslogger received unbound messages.
But : check the local Status System Logs System DNS Resolver log : no unbound messages neither.Something like unbound gets started before syslog start ..... (so unbound can't syslog) as the syslog socket hasn't been created yet.