Sudo vim /var/named/chroot/etc/named.conf : Différence entre versions

De Wiki iRENALA
Ligne 46 : Ligne 46 :
 
};
 
};
  
 
+
'''''début view backbonne
 +
'''''
  
 
view "back" IN {
 
view "back" IN {
Ligne 85 : Ligne 86 :
 
};
 
};
  
 
+
''
 +
'''fin view backbonne'''''
  
  

Version du 21 juillet 2011 à 16:13

les interfaces d ecoute acl INTERFACES { 127.0.0.1; 192.168.254.3;192.168.122.1; };


options {

port d ecoute

listen-on port 53 { INTERFACES; };

dossier de travail du serveur dns

directory "/var/named";

ne pas afficher la version du serveur

version "Version indisponible";

};

controls {

       inet 127.0.0.1 allow { localhost; } keys { rndckey; };

};


ici les log


logging {

       channel log_queries {
               file "/var/log/queries.log" versions 5 size 5m;
               print-time yes;
               print-category yes;
               print-severity yes;
               severity info;
               };
       category queries {
               log_queries;
               default_syslog;
               default_debug;
               default_stderr;
               null;
               };

};

début view backbonne


view "back" IN {


    match-clients {  192.168.254.0/24;127.0.0.1;10.240.24.0/24; };
    allow-query { 192.168.254.0/24;127.0.0.1;10.240.24.0/24;};
       recursion yes;
    allow-recursion {  192.168.254.0/24;127.0.0.1;10.240.24.0/24;};

zone "." IN {

       type hint;
       file "named.ca";

};


zone "localhost" IN {

       type master;
       file "named.local";
       allow-update { none; };

};

zone "0.0.127.in-addr.arpa" IN {

       type master;
       file "local";
       allow-update { none; };

};

zone "edu.mg" IN {

       type master;
       file "edu.mg";
       allow-update { none; };

};

zone "254.168.192.in-addr.arpa" IN {

       type master;
       file "edu.mg.rev";
       allow-update { none; };

};

fin view backbonne


view "dtic" IN {

match-clients {  192.168.10.0/24; };
allow-query { 192.168.10.0/24; };
   recursion yes;
    allow-recursion {  192.168.10.0/24;  };

zone "edu.mg" IN {

       type master;
       file "edu.mg";
       allow-update { none; };

};


};

include "/etc/rndc.key";