Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
serveur_install_party:dns [2012/07/07 13:10] Fanch billig |
serveur_install_party:dns [2023/07/18 23:11] (Version actuelle) |
||
---|---|---|---|
Ligne 23: | Ligne 23: | ||
/ | / | ||
- | | + | |
+ | | ||
type master; | type master; | ||
- | file "/etc/bind/10.9.rev"; | + | file "/var/lib/bind/lq.hosts"; |
- | allow-update { | + | allow-update { key "rndc-key"; }; |
- | | + | |
- | | + | |
}; | }; | ||
- | zone "lq" { | + | zone "9.10.in-addr.arpa" { |
type master; | type master; | ||
- | file "/etc/bind/lq.hosts"; | + | file "/var/lib/bind/10.9.rev"; |
- | allow-update { | + | allow-update { key "rndc-key"; }; |
- | | + | |
- | | + | |
}; | }; | ||
+ | |||
Créez la zone reverse / | Créez la zone reverse / | ||
Ligne 58: | Ligne 56: | ||
38400 ) | 38400 ) | ||
lq. | lq. | ||
+ | |||
+ | |||
+ | |||
+ | Configurez le fichier / | ||
+ | options { | ||
+ | directory "/ | ||
+ | | ||
+ | // If there is a firewall between you and nameservers you want | ||
+ | // to talk to, you may need to fix the firewall to allow multiple | ||
+ | // ports to talk. See http:// | ||
+ | | ||
+ | // If your ISP provided one or more IP addresses for stable | ||
+ | // nameservers, | ||
+ | // Uncomment the following block, and insert the addresses replacing | ||
+ | // the all-0' | ||
+ | | ||
+ | // forwarders { | ||
+ | // 0.0.0.0; | ||
+ | // }; | ||
+ | | ||
+ | // | ||
+ | // If BIND logs error messages about the root key being expired, | ||
+ | // you will need to update your keys. See https:// | ||
+ | // | ||
+ | dnssec-validation auto; | ||
+ | | ||
+ | auth-nxdomain no; # conform to RFC1035 | ||
+ | listen-on-v6 { none; }; | ||
+ | | ||
+ | managed-keys-directory "/ | ||
+ | | ||
+ | recursion yes; | ||
+ | | ||
+ | allow-recursion { | ||
+ | 127.0.0.1; | ||
+ | 10.9.0.0/ | ||
+ | }; | ||
+ | | ||
+ | allow-query { | ||
+ | 127.0.0.1; | ||
+ | 10.9.0.0/ | ||
+ | }; | ||
+ | | ||
+ | }; | ||
+ | |||
+ | |||
+ | |||
+ | Ajoutez (Si vous le souhaitez), les option de log à la toute fin du fichier named.conf.options. (Pensez à créer le répertoire / | ||
+ | |||
+ | logging { | ||
+ | channel default_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel general_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel database_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel security_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel config_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel resolver_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel xfer-in_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel xfer-out_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel notify_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel client_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel unmatched_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel queries_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel network_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel update_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel dispatch_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel dnssec_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | channel lame-servers_file { | ||
+ | file "/ | ||
+ | severity dynamic; | ||
+ | print-time yes; | ||
+ | }; | ||
+ | category lame-servers { | ||
+ | lame-servers_file; | ||
+ | }; | ||
+ | category dnssec { | ||
+ | dnssec_file; | ||
+ | }; | ||
+ | category dispatch { | ||
+ | dispatch_file; | ||
+ | }; | ||
+ | category update { | ||
+ | update_file; | ||
+ | }; | ||
+ | category network { | ||
+ | network_file; | ||
+ | }; | ||
+ | category queries { | ||
+ | queries_file; | ||
+ | }; | ||
+ | category unmatched { | ||
+ | unmatched_file; | ||
+ | }; | ||
+ | category client { | ||
+ | client_file; | ||
+ | }; | ||
+ | category notify { | ||
+ | notify_file; | ||
+ | }; | ||
+ | category xfer-out { | ||
+ | xfer-out_file; | ||
+ | }; | ||
+ | category xfer-in { | ||
+ | xfer-in_file; | ||
+ | }; | ||
+ | category resolver { | ||
+ | resolver_file; | ||
+ | }; | ||
+ | category config { | ||
+ | config_file; | ||
+ | }; | ||
+ | category security { | ||
+ | security_file; | ||
+ | }; | ||
+ | category database { | ||
+ | database_file; | ||
+ | }; | ||
+ | category general { | ||
+ | general_file; | ||
+ | }; | ||
+ | category default { | ||
+ | default_file; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | |||
+ | |||
Redémarrez votre serveur bind | Redémarrez votre serveur bind |