<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hi<br></div><div><br data-mce-bogus="1"></div><div>I'd recommends using RPZ on your recursor, if you sign-up here: <a href="https://github.com/Homas/ioc2rpz#installation">https://github.com/Homas/ioc2rpz#installation</a> - you'll get a ton of regularly updates feeds and you an implement your own blacklist/whitelist fairly easily. Take a look at it and see what you think.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I've been using those feeds for quite a while and without problems.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Regards<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Bill<br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Pdns-users" <pdns-users@mailman.powerdns.com><br><b>To: </b>"Pdns-users" <PDNS-Users@MailMan.PowerDNS.com><br><b>Sent: </b>Tuesday, 18 January, 2022 21:13:54<br><b>Subject: </b>[Pdns-users] zoneToCache - File Format<br></blockquote></div><div><style><!--

@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.SIQC, li.SIQC, div.SIQC
        {mso-style-name:SIQC;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Arial",sans-serif;
        color:#003049;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">






<div class="WordSection1">
<p class="MsoNormal">Hi All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">BackGround:</p>
<p class="MsoNormal">PowerDNS Recursor v4.6.0</p>
<p class="MsoNormal">I have the example from the docs (https://doc.powerdns.com/recursor/lua-config/ztc.html) working perfectly:</p>
<p class="MsoNormal">zoneToCache(".", "url", "https://www.internic.net/domain/root.zone", { refreshPeriod = 0 })</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Problem:</p>
<p class="MsoNormal">I’d like to load a “BlackList” file (or multiple BlackList files) the same way, but I have no idea what file format the PDNS zoneToCache function is looking for.  In a perfect world, I’d like to be able to take a list of domains like this:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Domain1.com</p>
<p class="MsoNormal">Domain2.com</p>
<p class="MsoNormal">Domain3.com</p>
<p class="MsoNormal">*.Domain3.com</p>
<p class="MsoNormal">Domain4.com</p>
<p class="MsoNormal">Sub.Domain4.com</p>
<p class="MsoNormal">Sub2.Domain4.com</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">And load them via the zoneToCache feature, and have them all point to a specific, common IP Address, like 192.168.1.100, but I can’t seem to figure out how to accomplish this.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any thoughts, examples, or suggestions would be greatly appreciated.  Thank you very much for your time & help.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Cheers,</p>
<p class="MsoNormal">Clint</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>


<br>_______________________________________________<br>Pdns-users mailing list<br>Pdns-users@mailman.powerdns.com<br>https://mailman.powerdns.com/mailman/listinfo/pdns-users<br></blockquote></div></div></body></html>