TShopping

 找回密碼
 註冊
搜索
查看: 4075|回復: 2
打印 上一主題 下一主題

[教學] named.caching-nameserver.conf 設定

  [複製鏈接]
跳轉到指定樓層
1#
發表於 2008-5-19 11:54:19 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
  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. };
複製代碼

 

臉書網友討論
2#
發表於 2012-10-10 00:51:40 | 只看該作者
謝謝大大的分享啊!

版主招募中

*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-4-26 15:20 , Processed in 0.069933 second(s), 19 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表