Forward query for specific zone based on client ip
Manish
b0069576 at gmail.com
Wed Jan 18 16:39:28 UTC 2023
Hi Josef,
Whenever there's a request for example.org from 10.20.30.0/24 then they
should get A record 10.1.1.1 for example.org
Is this what you are looking for?
Kindly correct me if I'm wrong
Regards
Manish
On Wed, 18 Jan, 2023, 16:47 Josef Vybíhal via Unbound-users, <
unbound-users at lists.nlnetlabs.nl> wrote:
> Hi, I am trying to configure unbound for forwarding queries when a
> specific zone (i will use example.org as an example) is queried by a
> specific client (I will use subnet 10.20.30.0/24 as an example).
>
> My core idea is:
>
> if ((10.20.30.0/24) && (zone=example.org)):
> forward-zone:
> name: "example.org"
> forward-addr: 10.1.1.1
>
> if any other client or domain:
> use recursion or other configured stub-zones as usual
>
>
> I am reading docs for Tags & Views but that does not seem to support
> whan I want to do. I know I could do this in bind by using views and
> match-client, however in unbound my approach does seem to be false. Do
> you guys think it's possible to define such a condition? Any hints?
>
>
> Thanks
>
> Josef
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20230118/b0a8d486/attachment.htm>
More information about the Unbound-users
mailing list