Advertisement
Guest User

named.conf

a guest
Jun 11th, 2015
365
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options {
  2.         directory "/var/named";
  3.         dump-file "/var/named/data/dump.db";
  4.         statistics-file "/var/named/data/statistics.txt";
  5.         memstatistics-file "/var/named/data/memstatistics.txt";
  6.  
  7.         listen-on port 53 { 10.20.30.1; };
  8.  
  9.         allow-query { any; };
  10.         allow-query-cache { any; };
  11.         allow-recursion { any; };
  12.  
  13.         recursion yes;
  14.         dnssec-enable yes;
  15.         dnssec-validation yes;
  16.  
  17.         forwarders { 8.8.8.8; 8.8.4.4; };
  18. };
  19.  
  20. view "ovpn" {
  21.         match-clients { any; };
  22.  
  23.         zone "domain.ru" {
  24.                 type master;
  25.                 file "/etc/named/domain.ru";
  26.         };
  27.  
  28.         zone "30.20.10.in-addr.arpa" {
  29.                 type master;
  30.                 file "/etc/named/30.20.10.in-addr.arpa";
  31.         };
  32. };
  33.  
  34.  
  35. logging {
  36.         channel "def" {
  37.                 file "/var/log/named/default.log" versions 5 size 10m;
  38.                 print-time yes;
  39.                 print-severity yes;
  40.                 print-category yes;
  41.         };
  42.  
  43.         channel "query" {
  44.                 file "/var/log/named/query.log" versions 5 size 10m;
  45.                 print-time yes;
  46.                 print-severity no;
  47.                 print-category no;
  48.         };
  49.  
  50.         category default { "def"; };
  51.         category queries { "query"; };
  52. };
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement