DHCP | dnsmasq | logging loglevel in configuration
Where can I change the loglevel of the dnsmasq-service?
I want to know if a device request and gets a new or the same IP-address.
I found this helpful documentation site:
And changed my config: /etc/config/dhcp
option logfacility '/tmp/log/dnsmasq.log'
option logdhcp '1'
#option logqueries '0'
option quietdhcp '1'
Which is pretty nice and very detailed, but a bit too much for logging over a couple of weeks.
Every 5 minutes my router now logs this block:
14:50:08 dnsmasq-dhcp[1]: 1946819078 available DHCP range: 10.10.1.100 -- 10.10.1.109
14:50:08 dnsmasq-dhcp[1]: 1946819078 DHCPDISCOVER(br-lan) c4:xxx
14:50:08 dnsmasq-dhcp[1]: 1946819078 tags: lan, known, br-lan
14:50:08 dnsmasq-dhcp[1]: 1946819078 DHCPOFFER(br-lan) 10.10.1.93 c4:xxx
14:50:08 dnsmasq-dhcp[1]: 1946819078 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname,
14:50:08 dnsmasq-dhcp[1]: 1946819078 requested options: 15:domain-name, 28:broadcast, 42:ntp-server
14:50:08 dnsmasq-dhcp[1]: 1946819078 next server: 10.10.1.1
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 1 option: 53 message-type 2
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 54 server-identifier 10.10.1.1
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 51 lease-time 12h
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 58 T1 6h
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 59 T2 10h30m
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 1 netmask 255.255.255.0
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 28 broadcast 10.10.1.255
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 3 router 10.10.1.1
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 4 option: 6 dns-server 10.10.1.1
14:50:08 dnsmasq-dhcp[1]: 1946819078 sent size: 3 option: 15 domain-name lan
14:55:09 dnsmasq-dhcp[1]: 2786781257 available DHCP range: 10.10.1.100 -- 10.10.1.109
14:55:09 dnsmasq-dhcp[1]: 2786781257 DHCPDISCOVER(br-lan) c4:xxx
14:55:09 dnsmasq-dhcp[1]: 2786781257 tags: lan, known, br-lan
14:55:09 dnsmasq-dhcp[1]: 2786781257 DHCPOFFER(br-lan) 10.10.1.93 c4:xxx
I'm wondering because my
DHCP SERVER Lease time is set to 12h.
Any tips?