LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need some help with Bind DNS views (https://www.linuxquestions.org/questions/linux-newbie-8/need-some-help-with-bind-dns-views-4175462554/)

Waqas Khan 05-19-2013 05:08 AM

Need some help with Bind DNS views
 
I want to know how to allow only specific source IP addresses to be able to access a few websites and all other URL's should be blocked in Bind DNS 9.x.x I know this is possible through views but I dont know how to make it resolve only a few IP addresses and block the rest

Ygrex 05-20-2013 08:55 AM

from my bind:
Code:

view "local" {
        match-clients { 0.0.0.0/8; 127.0.0.0/8; ::1; 192.168.0.0/16; };
        include "/etc/bind/named.conf.local";
        include "/etc/bind/named.conf.default-zones";
};

view "global" {
        match-clients { any; };
        include "/etc/bind/named.conf.default-zones";
};



All times are GMT -5. The time now is 10:53 PM.