<html><head></head><body><div>Thanks for the clarity. </div><div><br></div><div>I tried to resolve some top level domains NS and still getting high latency.</div><div><br></div><div><br></div><div>$ dig ae ns @localhost</div><div><br></div><div>;; omitting</div><div><br></div><div>;; ANSWER SECTION:</div><div>ae. 3600 IN NS ns2.aedns.ae.</div><div>ae. 3600 IN NS ns4.apnic.net.</div><div>ae. 3600 IN NS nsext-pch.aedns.ae.</div><div>ae. 3600 IN NS ns1.aedns.ae.</div><div><br></div><div><b>;; Query time: 152 msec</b></div><div><br></div><div><br></div><div>$ dig art ns @localhost</div><div><br></div><div>;; omitting</div><div><br></div><div>;; ANSWER SECTION:</div><div>art. 164969 IN NS b.nic.art.</div><div>art. 164969 IN NS c.nic.art.</div><div>art. 164969 IN NS a.nic.art.</div><div>art. 164969 IN NS d.nic.art.</div><div><br></div><div><b>;; Query time: 244 msec</b></div><div><br></div><div><br></div><div><span><pre>-- <br></pre><div><div>Regards<br><b>Jahanzeb Arshad</b><br><i>VP Operations</i></div></div></span></div><div><br></div><div>On Tue, 2021-12-21 at 07:49 +0100, Otto Moerbeek wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On Tue, Dec 21, 2021 at 10:28:53AM +0500, Jahanzeb Arshad via Pdns-users wrote:<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Greeting,<br></div><div><br></div><div>I am having trouble in getting zonetocache working for the root zone. I<br></div><div>am using PowerDNS Recursor 4.6.0.<br></div><div><br></div><div>I have following in my /etc/powerdns/recursor.lua configuration:<br></div><div><br></div><div>dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua")<br></div><div>zoneToCache(".", "url", "<a href="https://www.internic.net/domain/root.zone">https://www.internic.net/domain/root.zone</a>", {<br></div><div>refreshPeriod = 0 })<br></div><div><br></div><div><br></div><div>When I start the server I get the following message in the logs:<br></div><div><br></div><div>Dec 21 09:17:13 server.nayatel.com pdns-recursor[19209]: msg="Loaded<br></div><div>zone into cache" subsystem="ztc" level=0 ts="1640060233.959"<br></div><div>refresh="0" zone="."<br></div><div><br></div><div><br></div><div>But when I do dig for the records in the root.zone I get high Query<br></div><div>time. On subsequent queries I get 0 msec time which means it was cached<br></div><div>after I did query for the record.<br></div><div><br></div><div>$ dig b.nic.aaa<br></div><div><br></div><div>;; omitting output<br></div><div><br></div><div>;; ANSWER SECTION:<br></div><div>b.nic.aaa. 86400 IN A 37.209.194.9<br></div><div><br></div><div>;; Query time: 512 msec<br></div><div><br></div><div><br></div><div>-- <br></div><div>Regards<br></div><div>Jahanzeb Arshad<br></div></blockquote><div><br></div><div>The root zone has no autoritative data for b.nic.aaa, only<br></div><div>non-authoritative data. Digging for b.nic.aaa asks for authoritiative<br></div><div>data.<br></div><div><br></div><div>Non-autoritative data *will* be used to get the addresses of<br></div><div>namservers of delegated zones.<br></div><div><br></div><div>Try asking your server for NS aaa. This query only uses root-zone<br></div><div>data. You should get an immediate response, including additional<br></div><div>data.<br></div><div><br></div><div> -Otto<br></div></blockquote></body></html>