Ceci est une ancienne révision du document !
Configuration DNS
Configuration du service DNS sur RHEL/CentOS 6.
Installation
Les paquets suivants sont à installer:
- bind
- bind-utils
- bind-libs
- bind-chroot
Configuration
Les fichiers de configuration avec bind chrooté se trouvent dans /var/named/chroot/etc.
Fichier de configuration named.conf
Il s'agit du fichier principal de configuration, le premier à être lu.
// // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 91.121.61.20; }; // listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; // allow-query { any; }; // recursion yes; allow-recursion { mes_dns; 127.0.0.1; 94.23.42.209; }; allow-notify { mes_dns; }; version none; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones";