... acl guangzhou {172.20.20.11;}; view guangzhou { match-clients { guangzhou; }; zone "." IN { type hint; file "named.ca"; }; zone "skills.top" IN { type master; file "gz.zone"; }; };
acl foshan {172.20.20.12;}; view foshan { match-clients { foshan; }; zone "." IN { type hint; file "named.ca"; }; zone "skills.top" IN { type master; file "fs.zone"; }; };
acl shenzhen {172.20.20.13;}; view shenzhen { match-clients { shenzhen; }; zone "." IN { type hint; file "named.ca"; }; zone "skills.top" IN { type master; file "sz.zone"; }; };
view default { match-clients { any; }; zone "." IN { type hint; file "named.ca"; }; zone "skills.com" IN { type master; file "skills.zone"; }; };
# zone "." IN { # type hint; # file "named.ca"; # };
# include "/etc/named.rfc1912.zones"; include "/etc/named.root.key";
添加正向区域
1 2 3 4 5
cd /var/named for i in {gz,fs,sz};do cp -a named.localhost $i.zone;done echo "test A 1.1.1.1" >> gz.zone echo "test A 2.2.2.2" >> fs.zone echo "test A 3.3.3.3" >> sz.zone