BIND9 Return different IP address based on subnet

Matus UHLAR - fantomas uhlar at fantomas.sk
Mon Dec 29 09:01:47 UTC 2014


On 28.12.14 19:59, Christian Kette wrote:
>Thank you for the helpful answer.
>I changed the file /etc/bind/named.conf.local to
[...]
>view "ext" {
>    match-clients { 192.168.2.0/24;};
>    zone "2.168.192.in-addr.arpa" {
>        type master;
>        file "/etc/bind/db.rev.2.168.192.in-addr.arpa";
>    };
>};
>view "wlan0" {
>    match-clients { 192.168.3.0/24;};
>    zone "3.168.192.in-addr.arpa" {
>        type master;
>        file "/etc/bind/db.rev.3.168.192.in-addr.arpa";
>    };
>};
[...]

the point of views it not to have different zones, you need views when you
have different versions of the same zone.

in your example you could use single view with all of the zones.


-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I wonder how much deeper the ocean would be without sponges. 


More information about the bind-users mailing list