woff 發表於 2008-5-19 11:54:19

named.caching-nameserver.conf 設定

//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver 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.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//

acl "trust-network" {
      localhost;
      192.168.123.0/24;
};

options {
      listen-on port 53 { any; };
      listen-on-v6 port 53 { any; };
      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";
      query-source    port 53;
      query-source-v6 port 53;
      allow-query   { trust-network; };
      allow-recursion { trust-network; };
      allow-transfer{ none; };
};

logging {
      channel default_debug {
                file "data/named.run";
                severity dynamic;
      };
};

include "/etc/named.rfc1912.zones";

zone "xxxxxx.com.tw" {
      type master;
      file "dirname/xxxxxx.com.tw";
      allow-query { any; };
      allow-transfer { slave-ip; };
};

zone "yyyyy.com.tw" {
      type slave;
      file "dirname/yyyyyyy.com.tw";
      allow-query { any; };
      allow-transfer { none; };
};

su3xl3a8 發表於 2012-10-10 00:51:40

謝謝大大的分享啊!
頁: [1]
查看完整版本: named.caching-nameserver.conf 設定