Hi All, Feeling inquisitive about the options --dhcp-luascript, script-arp, and script-on-renewal, I've been exploring what possibilities this brings. Knowing absolutely nothing about lua, I have pulled together a simple logging script that works -- but I've run up against a problem in accessing the stored variables. Therefore, this is probably more of a query about lua than it is about dnsmasq.
The man page states that the environment inherits a number of variables (example: DNSMASQ_TAGS) which I am trying to retrieve -- but my current approach is returning nil (eg. tags = os.getenv("DNSMASQ_TAGS")) Questions: * How can I retrieve the contents of the DNSMASQ_ variables (if set) * Does the dnsmasq log the return status if there is an error? * and (tentatively / hypothetically), could the actions taken by dnsmasq in granting/renewing a lease be modified following the results of running the lua script? For example, if the lua script modified the DNSMASQ_TAGS variable. Note: This is NOT a feature request -- purely thinking about what might be possible... I've uploaded my current test script to: https://github.com/whitepj/dnsmasq-lua if this makes anything clearer. Many thanks, Phil _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss