Where does OpenWRT write data into /tmp/dhcp.leases?

Hi everyone,

I have a question about dhcp in OpenWRT. Currently, I see many points to read data from /tmp/dhcp.leases to get mac, ip, hostname, lease time of the client which connects to the device but I don't know the point (app or service,...) write these data for per client in this file. I tried to find in busybox but it doesn't seem true. Could you help me? Thank you so much.

dnsmasq is the service that contains the DHCP server and writes to that file.

2 Likes