Action trigger on DHCP lease
Hi there.
Is there any way to trigger a script avery time a new lease happens? Note: by new lease I mean when a new computer (or an old one) gets an IP address from the DHCP server (dhcpd). I searched and didn't find anything related, if someone knows a way please tell me. Best Regards. |
I can't find anything about doing this with ISC dhcpd, but dnsmasq can do what you want. I've got it doing the same thing for dynamic iptables port forwarding rules on my router. For a smallish network, I think dnsmasq is just as good as dhcpd, and it doubles as a dns server as well.
|
Do you know if it can be user only just as a DHCP server, leaving the DNS job for bind?
|
Yes, you can disable the DNS by (according to the man page) setting the listening port to 0.
|
All times are GMT -5. The time now is 02:33 AM. |