[Dnsmasq-discuss] Running a script after a resolution request

Simon Kelley simon at thekelleys.org.uk
Mon Mar 24 21:08:08 UTC 2014

On 24/03/14 19:39, Ronaldo Zacarias Afonso wrote:
>    Hi everybody,
>    I'd like to know if it is possible to configure dnsmasq to execute a 
> script after a name resolution request.
>    The ideia is having a script that updates a firewall each time 
> someone asks for the resolution of www.somedomain.com.
>    Any help would be appreciated.
>    Thanks in advance ...

Would this serve to solve the problem?

    Places the resolved IP addresses of queries for the specified
    domains in the specified netfilter ip sets. Domains
    and subdomains are matched in the same way as --address. These ip
    sets must already exist. See ipset(8) for  more details.



More information about the Dnsmasq-discuss mailing list