<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;"><div>> Yes, you were and still are - yet again, you don't give us full picture and</div><div>> you are guessing what might be wrong.</div>> And yet this quickly turned from "why does cache doesn't work" into "I'm developing DLZ module and it doesn't work as expected".<div>> No, it's a waste of time if you don't tell the whole picture and selectively pick information that you think is relevant.</div><div>> If you want help, don't do that. You don't have to "dump all data", but telling the whole story would likely lead to a positive result much quicker. You are asking people to help you for free, so you need to do your homework properly.</div><br>You keep accusing me of censorship, like developing a DLZ is military work!<br>Feels childish at this point. Would be counter productive to keep it up.<br> <div>> Now the important part we haven't heard yet...</div><div><span style="caret-color: rgb(0, 0, 0);color: rgb(0, 0, 0)">> How do the DNS responses (full messages) from NS2 that are not being cached look like?</span></div><br>Oh yes, let's spill the state secrets.<br>Here is the answer I get from NS2, which provides data from the DLZ:<br><br>/ # dig A test.com -p 153 @127.0.0.1<br><br>; <<>> DiG 9.18.9 <<>> A test.com -p 153 @127.0.0.1<br>;; global options: +cmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47058<br>;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1<br>;; WARNING: recursion requested but not available<br><br>;; OPT PSEUDOSECTION:<br>; EDNS: version: 0, flags:; udp: 1232<br>; COOKIE: 615bd381af736012010000006388d58f953e68e0a4def2c0 (good)<br>;; QUESTION SECTION:<br>;test.com. IN A<br><br>;; ANSWER SECTION:<br>test.com. 0 IN A 10.10.10.10<br><br>;; Query time: 114 msec<br>;; SERVER: 127.0.0.1#153(127.0.0.1) (UDP)<br>;; WHEN: Thu Dec 01 16:25:51 UTC 2022<br>;; MSG SIZE rcvd: 82<br><br>I can see "AUTHORITY: 0" in the answer, and now I understand NS1 does not cache this because of that (did not know only authority 1 answers are cached when I sent the initial email. How did you expect me to ask the question in the first place? Is that documented somewhere btw?)<br>My question still stands: shouldn't NS2 answer with AUTHORITY: 1, regardless of DLZ or local-file backend, since the definition for the zone is as below?<br><br>dlz XDB {<br> database "dlopen /usr/lib/bind/dlz_mongodb_mod.so <MongoDB URI> 0";<br> search no;<br>};<br><br>zone "test.com" {<br> type master;<br> dlz XDB;<br> allow-query { any; };<br>};<br><br>Regards<br>Hamid Maadani<br> </div></body></html>