I have setup view matching as below on my bind server running version "bind-9.9.5P1-2.2.2.x86_64"
my /etc/named.conf is as below options { directory "/var/lib/named"; #dnssec-enable yes; managed-keys-directory "/var/lib/named/dyn/"; dump-file "/var/log/named_dump.db"; statistics-file "/var/log/named.stats"; listen-on-v6 { any; }; notify no; disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA"; }; acl internal { 192.168.24.0/24; localhost; }; view "internal" { match-clients { internal; }; allow-recursion { any; }; zone "." in { type hint; file "root.hint"; }; zone "localhost" in { type master; file "localhost.zone"; }; zone "0.0.127.in-addr.arpa" in { type master; file "127.0.0.zone"; }; zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { type master; file "127.0.0.zone"; }; zone "internal.nixcraft.com " IN { type master; file "lan.master.nixcraft.com"; }; }; view "external" { match-clients { any; }; recursion no; zone "nixcraft.com " IN { type master; file "internet.master.nixcraft.com"; }; }; Zone file lan.master.nixcraft.com as below $ORIGIN nixcraft.com. $TTL 3h @ IN SOA ns1.nixcraft.com. vivek.nixcraft.com. ( 2008070332 ; Serial yyyymmddnn 3h ; Refresh After 3 hours 1h ; Retry Retry after 1 hour 1h ; Expire after 1 week 1w 1h) ; Minimum negative caching of 1 hour @ IN NS ns1.nixcraft.com. @ IN NS ns2.nixcraft.com. @ 3600 IN MX 10 mail1.nixcraft.com. @ 3600 IN MX 20 mail2.nixcraft.com. @ 3600 IN A 208.43.79.236 ns1 3600 IN A 208.43.138.52 ns2 3600 IN A 75.126.168.152 mail1 3600 IN A 208.43.79.236 mail2 3600 IN A 67.228.49.229 out-router 3600 IN A 208.43.79.100 ; lan data wks1 3600 IN A 192.168.1.5 wks2 3600 IN A 192.168.1.5 wks3 3600 IN A 192.168.1.5 in-router 3600 IN A 192.168.1.254 ; add other lan specifc data below These are the examples from: https://www.cyberciti.biz/faq/linux-unix-bind9-named-configure-views/ When starting named: I am getting error as below Dec 05 17:51:54 sataradnsVM1 named[4038]: zone internal.nixcraft.com\032/IN/internal: has 0 SOA records Dec 05 17:51:54 sataradnsVM1 named[4038]: zone internal.nixcraft.com\032/IN/internal: has no NS records Dec 05 17:51:54 sataradnsVM1 named[4038]: zone internal.nixcraft.com\032/IN/internal: not loaded due to errors. Please help Thanks
_______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users