Closed kmarty closed 7 years ago
Right, some unexpected interaction between the modules, apparently. The policy isn't applied when following CNAME.
Your English seems very well understandable to me; all active devs do understand Czech, but English is preferred as it's generally more accessible.
Yes, confirmed: as the module is written now, the policy rules are only applied to a full request and not at all during iteration (including CNAME followups).
@vavrusa: is that how the module was intended? I suppose we would better at least provide a switch that makes the policies apply in each step, to support such setups (e.g. easier switching from other resolvers).
Ehm, maybe I'm wrong, but... kresd is a DNS resolver. It is his job. There is/should be nothing like "support for easier switching". It simply resolve or not. It results to difference like:
root@unbound:~# nc a.zone-a 25
220 b.zone-b ESMTP Exim 4.84_2 Mon, 07 Nov 2016 22:16:31 +0100
QUIT
221 b.zone-b closing connection
and:
root@kresd:~# nc a.zone-a 25
a.zone-a: forward host lookup failed: Host name lookup failure : Resource temporarily unavailable
The difference can be big, sure, but both ways seem valid to me.
The policy rules are applied for ingress by default, but it makes sense to run them for outbound queries too. There's a hook for outbound queries now, it's just not utilised for filter rules. Not sure what is the use case you're trying to solve - internal zones that are linked together via CNAMEs are odd (maybe you have a reason though), and you can always work around that by not using the CNAME records.
Merged with https://gitlab.labs.nic.cz/knot/knot-resolver/issues/217, closing. Please continue discussion on Gitlab.
Hi, I'm trying to make something similar to unbound's cfg:
So I set this to kresd:
Expected behaviour (as made by unbound):
But Knot resolver does it ... strange :-/ :
with 'verbose(true)' I got:
Am I doing something wrong which causes kresd forget forwarding zone 'zone-b' or what? (All tests were made in network isolated from Internet)
Simple query which doesn't go across zones works:
(Jestli je mozny psat cesky, tak bych byl rad. Ale nejspis ne, takze se omlouvam za kostrbatost - I'd be glad to write it in czech, but it is probably not allowed so I'm sorry)