redirect with exceptions

Bartosz Fenski bartosz at fenski.pl
Fri Nov 29 15:46:47 UTC 2024


Hello,

I'm trying to create rather simple (at least I thought so initially) 
solution.

Want to intercept some of the DNS queries in my homelab and return fake 
entries for them.

So basically I want to return let's say 10.10.10.10 for every subdomain 
of foo.com but for some hostnames/subdomains I'd like to return 
different IP, let's say 10.10.10.11.

So:

*.foo.com -> 10.10.10.10

a.foo.com -> 10.10.10.11

I started experimenting with redirect but seems it doesn't allow to set 
any exceptions. Is all or nothing.

Is there a way to configure unbound the way I want?

Thanks for any hints.

regards
Bartosz Fenski



More information about the Unbound-users mailing list