<html>
<head>
<style type="text/css">
body,p,td,div,span{
font-size:14px;font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
};
body p{
margin:0px;
}
</style>
</head>
<body><span style="color: rgb(0, 0, 0); font-family: Lato, sans-serif;">Hello,</span><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">I am facing with a weird issue, explained in a lot of detail here: <a target="_blank" href="https://forum.netgate.com/topic/150898/unbound-domain-overrides-stop-resolving-periodically-they-only-resume-after-the-service-has-been-restarted/4" style="box-sizing: border-box; cursor: pointer; color: purple;">https://forum.netgate.com/topic/150898/unbound-domain-overrides-stop-resolving-periodically-they-only-resume-after-the-service-has-been-restarted/4</a></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">but I will sum it up here as well:</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">I am running Unbound 1.10 inside a FreeBSD environment.</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">I use a local domain named test.local served by Bind and cached by Unbound.</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">Unbound is configured with:</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><div style="margin: 0px; padding: 0px; box-sizing: border-box;"> domain-insecure: "test.local"</div><div style="margin: 0px; padding: 0px; box-sizing: border-box;"> private-domain: "test.local"</div></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">I also tried configuring it as either a stub or a forward zone, it doesn't matter as to the bug.</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">How to reproduce this:</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">- Start unbound</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">- resolve host1.test.local, host2.test.local, etc. all is fine</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">- resolve blah.local , it fails after trying to go to root NS's</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">- try to resolve host1.test.local, host2.test.local , it fails this time with NXDOMAIN</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">If you restart Unbound, it will resolve test.local again, until you try and resolve a non-configured .local domain</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">If I add "local" as a forward zone that goes to my main NS, the issue goes away entirely.<br><br>Is this expected behavior or a bug ?</div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;"><br style="box-sizing: border-box;"></div><div style="margin: 0px; padding: 0px; box-sizing: border-box; color: rgb(0, 0, 0); font-family: Lato, sans-serif;">Thanks!</div></body></html>