reseau:dns:dnslocalexterne
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| reseau:dns:dnslocalexterne [2025/10/12 16:53] – [Configuration] admin | reseau:dns:dnslocalexterne [2025/11/21 09:19] (Version actuelle) – [Configuration] admin | ||
|---|---|---|---|
| Ligne 10: | Ligne 10: | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| * désactiver la ligne **include "/ | * désactiver la ligne **include "/ | ||
| - | * créer | + | * inclure la zone actuelle dans la **vue externe** et créer |
| < | < | ||
| - | acl "internal" { | + | acl "interne" { |
| 192.168.1.0/ | 192.168.1.0/ | ||
| localhost; | localhost; | ||
| }; | }; | ||
| - | acl "external" { | + | acl "externe" { |
| any; | any; | ||
| }; | }; | ||
| - | view "internal" { | + | view "interne" { |
| - | match-clients { "internal"; }; | + | match-clients { "interne"; }; |
| recursion no; | recursion no; | ||
| zone " | zone " | ||
| type master; | type master; | ||
| - | file "/ | + | file "/ |
| }; | }; | ||
| }; | }; | ||
| - | view "external" { | + | view "externe" { |
| - | match-clients { "external"; }; | + | match-clients { "externe"; }; |
| recursion no; | recursion no; | ||
| zone " | zone " | ||
| type master; | type master; | ||
| - | file "/ | + | file "/ |
| }; | }; | ||
| }; | }; | ||
| </ | </ | ||
| + | |||
| + | Il est nécessaire également de mette dans le fichier **named.conf.root-hints** la déclaration d'une vue : | ||
| + | < | ||
| + | GNU nano 8.4 | ||
| + | // prime the server with knowledge of the root servers | ||
| + | |||
| + | view " | ||
| + | match-clients { " | ||
| + | recursion no; | ||
| + | zone " | ||
| + | type hint; | ||
| + | file "/ | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | ==== Retour Configurer le service DNS ==== | ||
| + | * [[: | ||
| + | |||
| + | |||
| + | |||
reseau/dns/dnslocalexterne.1760280813.txt.gz · Dernière modification : 2025/10/12 16:53 de admin
