Sudo vim /var/named/chroot/etc/named.conf

De Wiki iRENALA

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


début view DTIC en mode test

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; };

};


};

fin wiew DTIC


intranet etat view


view "intranet" IN {

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

zone "edu.mg" IN {

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

};


};


'fin view intranet de l Etat'



include "/etc/rndc.key";