<div dir="auto"><div>Hi Josef,</div><div dir="auto"><br></div><div dir="auto">Whenever there's a request for <a href="http://example.org">example.org</a> from <a href="http://10.20.30.0/24">10.20.30.0/24</a> then they should get A record 10.1.1.1 for <a href="http://example.org">example.org</a></div><div dir="auto"><br></div><div dir="auto">Is this what you are looking for?</div><div dir="auto"><br></div><div dir="auto">Kindly correct me if I'm wrong</div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Manish</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, 18 Jan, 2023, 16:47 Josef Vybíhal via Unbound-users, <<a href="mailto:unbound-users@lists.nlnetlabs.nl">unbound-users@lists.nlnetlabs.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I am trying to configure unbound for forwarding queries when a<br>
specific zone (i will use <a href="http://example.org" rel="noreferrer noreferrer" target="_blank">example.org</a> as an example) is queried by a<br>
specific client (I will use subnet <a href="http://10.20.30.0/24" rel="noreferrer noreferrer" target="_blank">10.20.30.0/24</a> as an example).<br>
<br>
My core idea is:<br>
<br>
if ((<a href="http://10.20.30.0/24" rel="noreferrer noreferrer" target="_blank">10.20.30.0/24</a>) && (zone=<a href="http://example.org" rel="noreferrer noreferrer" target="_blank">example.org</a>)):<br>
forward-zone:<br>
name: "<a href="http://example.org" rel="noreferrer noreferrer" target="_blank">example.org</a>"<br>
forward-addr: 10.1.1.1<br>
<br>
if any other client or domain:<br>
use recursion or other configured stub-zones as usual<br>
<br>
<br>
I am reading docs for Tags & Views but that does not seem to support<br>
whan I want to do. I know I could do this in bind by using views and<br>
match-client, however in unbound my approach does seem to be false. Do<br>
you guys think it's possible to define such a condition? Any hints?<br>
<br>
<br>
Thanks<br>
<br>
Josef<br>
</blockquote></div></div></div>