:


---------------------------------------------------------------
       ""
 http://www.fima.net/bind-8.html
---------------------------------------------------------------
Bind 8.x.x.
. BIND 8.x.x.
.
BIND 4.
, RR , 'zone-check' , , .
P.S. , BIND 8, .

named.conf :

";"!

options { -- "Options".
        directory "." ;{
-- .
        named-xfer "/usr/libexec/named-xfer";
-- 'zone-xfer'.
        dump-file "named_dump.db";
-- -
.
        pid-file "/var/run/named.pid";
-- pid-.
        memstatistics-file "named.memstats";
-- .
.
        statistics-file "named.stats";
-- .
        check-names master fail;
-- . - - , .
        check-names slave warn;
-- -- 'slave'
        check-names response ignore;
-- -- .
        host-statistics no;
-- .
        deallocate-on-exit no;
--
.

.
'memstatistics-file.'
        forward-only;
-- 'Slave'.
        datasize default;
-- .
        stacksize default;
-- .
        coresize default;
        files unlimited;
-- .
        recursion yes;
-- .
        fetch-glue yes;
        fake-iquery no;
-- x.
        notify yes;
-- "NOTIFY"
'yes'
'zone-by-zone',
'zone'.
        auth-nxdomain yes;
-- AA
NXDOMAIN. 'no'
, --
( ) . :-)
;
        multiple-cnames no;
-- 'yes'
CANME RR.

,


.
        allow-query { any; };
        allow-transfer { any; };
        transfers-in 10;
--
20.
        transfers-per-ns 2;
-- Default
NameServer.
        transfers-out 0;
-- ;-)
        max-transfer-time-in 120;
--
'zone transfer'.
( )
        transfer-format one-answer;
--
'zone transfer'. :
one-answer - RR .
,
:-). BIND 8.1

.
many-answers -
RR'
DNS . ,
BIND 8.
'named-xfer' BIND 4.9.5.
DNS
,
'many-answers'.

'server' -
'host-by-host'.
        forward first;
        forwarders { };
-- Default
.
:
forwarders {
           1.2.3.4;
           5.6.7.8;
           };
        topology { localhost; localnets; };
-- NameServer'.
:
topology {
         10/8;              -- 
                             10.0.0.0  
                            255.0.0.0
         !1.2.3/24;         --   1.2.3.0
                              255.255.255.0 
                            
         { 1.2/16; 3/8; };  --  1.2.0.0 
                             255.255.0.0 
                            3.0.0.0   255.0.0.0
                            -  10/8,  .
         };
        listen-on port 53 { any; };
-- 53
.
,
53 /udp
:
listen-on { 5.6.7.8; };  --    53 
                             5.6.7.8
listen-on port 1234 { -- !1.2.3.4; 1234 1.2.3/24; 123 255.255.255.0, }; 1.2.3.4
        cleaning-interval 60;
-- RR . ( )
        interface-interval 60;
-- . ( )
        statistics-interval 60;
-- . ( )
};

zone "your.ru" { 
-- "Zone - Master".
      type master; 
-- . master = primary
      file "master.zone.ru"; 
-- DNS.( c )
      check-names fail;  
      allow-update { none; }; 
      allow-transfer { any; }; 
      allow-query { any; }; 
      also-notify { }; 
-- NOTIFY .
};

zone "not-your.ru" { 
-- "Zone - Slave".
      type slave; 
-- . slave = secondary
      file "not-your.ru"; 
-- DNS.( )
      masters { 1.2.3.4; 5.6.7.8; };  
-- NameServer' .
      transfer-source 10.0.0.53;  
-- 'MULTIHOMING'
      allow-update { none; }; 
      allow-transfer { any; }; 
      allow-query { any; }; 
      also-notify { }; 
-- NOTIFY .
      max-transfer-time-in 120; 
-- "Options" Default .
};

zone "stub.ru" { 
-- "Zone - Stub".
      type stub; 
-- . Stub slave, NS .
      file "not-your.ru"; 
-- DNS.( )
      masters { 1.2.3.4; 5.6.7.8; };  
-- NameServer' .
      check-names warn;  
      allow-update { none; }; 
      allow-transfer { any; }; 
      allow-query { any; }; 
      also-notify { }; 
-- NOTIFY .
      max-transfer-time-in 120; 
-- "Options" Default .
};

zone "." { 
-- "Zone - Hint".
      type hint; 
-- . Hint - ..
      file "chahe.db"; 
-- .
};

acl can_query { !1.2.3/24; any;}; 
-- 1.2.3.0 c 255.255.255.0. NameServe r.
acl can_axfr { !1.2.3.4; can_query; }; 
-- , , NameServer', 1.2.3.4 'can_q uery'.

zone "non-default-acl.ru" { 
-- "Zone - NON-Default-ACL".
      type master; 
      file "foo"; 
      allow-update { 1.2.3.4; 5.6.7.8; }; 
      allow-transfer { can_axfr; }; 
      allow-query { can_query; }; 
};

key key2 { 
-- "Key2" ( key1..key5..).
      algorithm hmac-md5; 
-- .
      secret "ereh terces rouy";
-- .
};

server 1.2.3.4 { 
-- "Server", NameServer' .
      bogus no;
--c 'yes' 1.2.3.4.
      transfer-format one-answer; 
      transfers 0;
-- .
      keys { key2; };
-- 'Key2"
};
logging { 
-- "Logging" , .
      channel syslog_errors {
          syslog user;  severity error;
                            };
-- . : critical,error,warning,notice,info,debug1...debug99.
      file "file.log"; 
-- .( )
};

include "filename"; 
-- .

.

Last-modified: Fri, 22 Jan 1999 06:19:38 GMT
: