<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-06-08 8:20 GMT+02:00 bert hubert <span dir="ltr"><<a href="mailto:bert.hubert@powerdns.com" target="_blank">bert.hubert@powerdns.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Wed, Jun 08, 2016 at 12:14:33AM +0200, Andrea Cappelli wrote:<br>
> Hi,<br>
> I want to change some recursor configuration (for exampe<br>
> forward-zone-recurse) at runtime for the specific request via LUA script<br>
> based on source IP<br>
<br>
</span>Hi Andrea,<br>
<br></blockquote><div><br></div><div>Hi Bert</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
You can't change PowerDNS Recursor configuration settings from Lua. </blockquote><div><br></div><div>ok</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The<br>
setting you mention however can be reloaded with 'rec_control reload-zones'.<br></blockquote><div><br></div><div>But this way is still "global", my need is "per request"</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> Can you point me to some documentation or examples to accomplish this?<br>
<br>
</span>If you want to forward dynamically based on IP address,</blockquote><div><br></div><div>That's my goal :)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> dnsdist might be a<br>
better fit for your needs, <a href="http://www.dnsdist.org/" rel="noreferrer" target="_blank">http://www.dnsdist.org/</a></blockquote><div><br></div><div>Thank you, I'll look to the documentation</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Also, if you can explain your usecase (what you are trying to achieve)</blockquote><div><br></div><div>I manage a linux device which is the default gateway and DNS server for a LAN in which there are some device that need to use this service</div><div><br></div><div><a href="https://www.unblock-us.com/">https://www.unblock-us.com/</a><br></div><div><br></div><div>which (through a set of DNS server) is used to avoid geo restriction on some apps (such as netflix)</div><div><br></div><div>But for other devices (the ones from <a href="http://www.sonos.com/">http://www.sonos.com/</a> which have apps for Spotify and so on) using those DNS instead of normal recursion is not good</div><div><br></div><div>So what I want is using my usual recursor or forwarding all request to a third party DNS server based on source IP (devices are statically allocated)</div></div><br>Best regards<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Andrea Cappelli<br></div></div>
</div></div>