[Dnsmasq-discuss] the dhcp-script function
Simon Kelley
simon at thekelleys.org.uk
Wed Jun 28 22:26:40 BST 2006
Joe Landman wrote:
> Hi all:
>
> Anyone get the dhcp-script option to function? I am trying to have it
> run a short perl script
>
> dhcp-script=/usr/bin/sicl.pl
>
> where sicl.pl is runnable by anyone. I even changed dnsmasq to running
> as user root. Not working. Is there some other magic incantation I
> need to do to trigger this?
That's all you need. I have
dhcp-script=/etc/dnsmasq.logger
and /etc/dnsmasq.logger contains
#!/bin/sh
date +"%D %T $*" >>/var/log/dhcp.log
just to log lease changes.
If the script is not runnable, dnsmasq should log an error.
Cheers,
Simon.
>
> Joe
More information about the Dnsmasq-discuss
mailing list