Sudo vim /var/named/chroot/etc/named.conf : Différence entre versions
De Wiki iRENALA
(Page créée avec « acl INTERFACES { 127.0.0.1; 192.168.254.3;192.168.122.1; }; options { listen-on port 53 { INTERFACES; }; directory "/var/named"; version "Version indisponible"; }; contr… ») |
|||
(6 révisions intermédiaires par un utilisateur sont masquées) | |||
Ligne 1 : | Ligne 1 : | ||
+ | '''''les interfaces d ecoute''''' | ||
acl INTERFACES { 127.0.0.1; 192.168.254.3;192.168.122.1; }; | acl INTERFACES { 127.0.0.1; 192.168.254.3;192.168.122.1; }; | ||
+ | |||
options { | options { | ||
+ | |||
+ | '''''port d ecoute''''' | ||
+ | |||
listen-on port 53 { INTERFACES; }; | listen-on port 53 { INTERFACES; }; | ||
+ | |||
+ | '''''dossier de travail du serveur dns''''' | ||
directory "/var/named"; | directory "/var/named"; | ||
+ | |||
+ | '''''ne pas afficher la version du serveur''''' | ||
+ | |||
version "Version indisponible"; | version "Version indisponible"; | ||
Ligne 13 : | Ligne 23 : | ||
inet 127.0.0.1 allow { localhost; } keys { rndckey; }; | inet 127.0.0.1 allow { localhost; } keys { rndckey; }; | ||
}; | }; | ||
+ | |||
+ | |||
+ | '''''ici les log''''' | ||
+ | |||
logging { | logging { | ||
Ligne 32 : | Ligne 46 : | ||
}; | }; | ||
− | + | '''''début view backbonne | |
+ | ''''' | ||
view "back" IN { | view "back" IN { | ||
Ligne 71 : | Ligne 86 : | ||
}; | }; | ||
+ | '' | ||
+ | '''fin view backbonne''''' | ||
+ | '''''début view DTIC en mode test''''' | ||
view "dtic" IN { | view "dtic" IN { | ||
Ligne 88 : | Ligne 106 : | ||
}; | }; | ||
+ | |||
+ | '''''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"; | include "/etc/rndc.key"; |
Version actuelle en date du 3 septembre 2011 à 07:02
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";