How do I manually purge ALL dhcpd.lease
?
Can I just sudo echo /dev/null > /var/lab/dhcpd/dhcpd.lease
?
It's a special use case of testing ground; we have an isolated LAN for developers to do test run. And after each testing session I'd need to reset everything to initial state, including DHCP lease records. The test session would take few days to just few hours, so I can't rely on dhcpd
auto-purge.
The DHCP server is running on Rocky Linux 8 (X86-64).
[EDIT]
The command should be cat /dev/null | sudo tee /var/lab/dhcpd/dhcpd.lease
. Thanks for the tip.