TShopping

標題: named.caching-nameserver.conf 設定 [打印本頁]

作者: woff    時間: 2008-5-19 11:54
標題: named.caching-nameserver.conf 設定
  1. //
  2. // named.caching-nameserver.conf
  3. //
  4. // Provided by Red Hat caching-nameserver package to configure the
  5. // ISC BIND named(8) DNS server as a caching only nameserver
  6. // (as a localhost DNS resolver only).
  7. //
  8. // See /usr/share/doc/bind*/sample/ for example named configuration files.
  9. //
  10. // DO NOT EDIT THIS FILE - use system-config-bind or an editor
  11. // to create named.conf - edits to this file will be lost on
  12. // caching-nameserver package upgrade.
  13. //

  14. acl "trust-network" {
  15.         localhost;
  16.         192.168.123.0/24;
  17. };

  18. options {
  19.         listen-on port 53 { any; };
  20.         listen-on-v6 port 53 { any; };
  21.         directory         "/var/named";
  22.         dump-file         "/var/named/data/cache_dump.db";
  23.         statistics-file "/var/named/data/named_stats.txt";
  24.         memstatistics-file "/var/named/data/named_mem_stats.txt";
  25.         query-source    port 53;
  26.         query-source-v6 port 53;
  27.         allow-query     { trust-network; };
  28.         allow-recursion { trust-network; };
  29.         allow-transfer  { none; };
  30. };

  31. logging {
  32.         channel default_debug {
  33.                 file "data/named.run";
  34.                 severity dynamic;
  35.         };
  36. };

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

  38. zone "xxxxxx.com.tw" {
  39.         type master;
  40.         file "dirname/xxxxxx.com.tw";
  41.         allow-query { any; };
  42.         allow-transfer { slave-ip; };
  43. };

  44. zone "yyyyy.com.tw" {
  45.         type slave;
  46.         file "dirname/yyyyyyy.com.tw";
  47.         allow-query { any; };
  48.         allow-transfer { none; };
  49. };
複製代碼

作者: su3xl3a8    時間: 2012-10-10 00:51
謝謝大大的分享啊!




歡迎光臨 TShopping (http://www.tshopping.com.tw/) Powered by Discuz! X3.2