I'm running Bind on OpenWrt 15.05.1 as DNS server. I wanted to set up multiple view, with different zones.
acl "trusted" {
10.0.1.0/24;
localhost;
localnets;
};
acl "blacklisted" {
10.0.1.10;
};
options {
directory "/tmp";
recursion yes;
allow-recursion { trusted; };
allow-transfer { none; };
dnssec-validation auto;
forwarders {
8.8.8.8;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
view "blacklist" {
match-clients { blacklisted; };
zone "example.com" { type master; file "/etc/bind/zones/db.example"; };
};
view "normal" {
match-clients { any; };
zone "." {
type hint;
file "/etc/bind/db.root";
};
};
And it works well, but only if the IP address in "blacklisted" acl has a subnet at its end (like that: 10.0.1.10/28). But I'm trying to target only one IP, which is not working for some reason.
Thanks for replies.
10.0.1.10
in this context? Based on how you use it withmatch-destinations
I gather it must be one of the addresses of the nameserver?match-destinations
was. If the solution is to change the client address matching it seems that maybe you meant to usematch-clients
all along? (Which may make for a more straightforward solution)match-clients
was ment to be there. I just wrote it as an example (because the question was about Bing ignoring the "blacklist" view).