oLeiShen 2019-11-28
// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // // See the BIND Administrator‘s Reference Manual (ARM) for details about the // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html options { listen-on port 53 { any; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; recursing-file "/var/named/data/named.recursing"; secroots-file "/var/named/data/named.secroots"; allow-query { any; }; notify yes; recursion yes; dnssec-enable yes; dnssec-validation yes; bindkeys-file "/etc/named/named.root.key"; managed-keys-directory "/var/named/dynamic"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; masterfile-format text ; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; #include "/etc/named/named.rfc1912.zones"; include "/etc/named/named.sx.zones"; include "/etc/named/named.root.key";
zone "sx" IN { type master; file "zones/sx.zone"; allow-update { 10.0.0.115; }; also-notify { 10.0.0.115; }; allow-transfer { 10.0.0.115; }; }; zone "sx.com" IN { type master; file "zones/sx.com.zone"; allow-update { 10.0.0.115; }; also-notify { 10.0.0.115; }; allow-transfer { 10.0.0.115; }; };
$TTL 600 @ IN SOA @ rname.invalid. ( 2 ; serial 1M ; refresh 1M ; retry 1M ; expire 3H ) ; minimum @ NS ns1 @ NS ns2 ns1 A 10.0.0.182 ns2 A 10.0.0.115 * A 10.0.0.184
// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // // See the BIND Administrator‘s Reference Manual (ARM) for details about the // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html options { listen-on port 53 { any; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; recursing-file "/var/named/data/named.recursing"; secroots-file "/var/named/data/named.secroots"; allow-query { any; }; recursion yes; dnssec-enable yes; dnssec-validation yes; bindkeys-file "/etc/named/named.root.key"; managed-keys-directory "/var/named/dynamic"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; masterfile-format text ; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; #include "/etc/named/named.rfc1912.zones"; include "/etc/named/named.sx.zones"; include "/etc/named/named.root.key";
zone "sx" IN { type slave; masters { 10.0.0.182; }; file "slaves/sx.zone"; }; zone "sx.com" IN { type slave; masters { 10.0.0.182; }; file "slaves/sx.com.zone"; };
在看配置文件