SHARE
TWEET

named.conf

a guest May 3rd, 2012 245 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // $OpenBSD: named-simple.conf,v 1.10 2009/11/02 21:12:56 jakob Exp $
  2. //
  3. // Example file for a simple named configuration, processing both
  4. // recursive and authoritative queries using one cache.
  5.  
  6.  
  7. // Update this list to include only the networks for which you want
  8. // to execute recursive queries. The default setting allows all hosts
  9. // on any IPv4 networks for which the system has an interface, and
  10. // the IPv6 localhost address.
  11. //
  12. acl clients {
  13.         localnets;
  14.         ::1;
  15. };
  16.  
  17. options {
  18.         version "";     // remove this to allow version queries
  19.  
  20.         listen-on    { any; };
  21.         listen-on-v6 { any; };
  22.  
  23.         empty-zones-enable yes;
  24.  
  25.         allow-recursion { clients; };
  26. };
  27.  
  28. logging {
  29.         category lame-servers { null; };
  30. };
  31.  
  32. // Standard zones
  33. //
  34. zone "." {
  35.         type hint;
  36.         file "etc/root.hint";
  37. };
  38.  
  39. zone "localhost" {
  40.         type master;
  41.         file "standard/localhost";
  42.         allow-transfer { localhost; };
  43. };
  44.  
  45. zone "127.in-addr.arpa" {
  46.         type master;
  47.         file "standard/loopback";
  48.         allow-transfer { localhost; };
  49. };
  50.  
  51. zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
  52.         type master;
  53.         file "standard/loopback6.arpa";
  54.         allow-transfer { localhost; };
  55. };
  56.  
  57. zone "255.in-addr.arpa" {
  58.         type master;
  59.         file "master/db.255";
  60. };
  61.  
  62. zone "0.in-addr.arpa" {
  63.         type master;
  64.         file "master/db.0";
  65. };
  66.  
  67.  
  68. // Master zones
  69. zone "hell.local" {
  70.         type master;
  71.         file "master/hell.local";
  72. };
  73.  
  74. //
  75. //zone "myzone.net" {
  76. //      type master;
  77. //      file "master/myzone.net";
  78. //};
  79.  
  80. // Slave zones
  81. //
  82. //zone "otherzone.net" {
  83. //      type slave;
  84. //      file "slave/otherzone.net";
  85. //      masters { 192.0.2.1; [...;] };
  86. //};
RAW Paste Data
Top