<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>ok thank you.. i was going to say that i never saw the addMasks option in README but i see that's been fixed just now :) </div>
<div> </div>
<div>for the file load i saw the recusor example uses <span style="white-space: pre-wrap;">dofile() ... can i use this in pdns as well ?</span></div>
<div> </div>
<div><span style="white-space: pre-wrap;">thanks</span></div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, June 01, 2017 at 5:02 PM<br/>
<b>From:</b> "Remi Gacogne" <remi.gacogne@powerdns.com><br/>
<b>To:</b> dnsdist@mailman.powerdns.com<br/>
<b>Subject:</b> Re: [dnsdist] addMasks() or addMasksFromFile() to make dealing with multiple addresses easier ?</div>
<div name="quoted-content">On 06/01/2017 03:40 AM, scott McGillivray wrote:> I want to use<br/>
addMask() but i have 80+ /32 addresses that i need to<br/>
> add which means i have the matching number of lines like this<br/>
<br/>
Well, since the configuration is in Lua, you can easily declare a list<br/>
and iterate over it.<br/>
<br/>
> I was wondering if addMasks() would be a good addition ? So it would<br/>
> be like this..<br/>
><br/>
> v:addMask("x.x.x.x/32", "x.x.x.x/32", "x.x.x.x/32", "x.x.x.x/32",<br/>
> "x.x.x.x/32", "x.x.x.x/32", "x.x.x.x/32")<br/>
<br/>
We already have NetmaskGroup:addMasks() version that takes a slightly<br/>
different kind of map, because it has be designed to be used with the<br/>
exceed* functions.<br/>
<br/>
> Or even addMasksFromFile() so the addresses could be populated more<br/>
> easily from external source ?<br/>
<br/>
I'm not sure it makes sense since it can already be done in Lua, and I<br/>
wouldn't want to end up with a fromFile() method for every object.<br/>
<br/>
--<br/>
Remi Gacogne<br/>
PowerDNS.COM BV - <a href="https://www.powerdns.com/" target="_blank">https://www.powerdns.com/</a><br/>
<br/>
_______________________________________________<br/>
dnsdist mailing list<br/>
dnsdist@mailman.powerdns.com<br/>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" target="_blank">https://mailman.powerdns.com/mailman/listinfo/dnsdist</a></div>
</div>
</div></div></body></html>