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:46] – [Présentation] admin | reseau:dns:dnslocalexterne [2025/11/21 09:19] (Version actuelle) – [Configuration] admin | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| Pour cela, il faut utiliser la fonctionnalité de bind9 appelée **views**. | Pour cela, il faut utiliser la fonctionnalité de bind9 appelée **views**. | ||
| + | |||
| + | ===== Configuration ===== | ||
| + | * désactiver la ligne **include "/ | ||
| + | * inclure la zone actuelle dans la **vue externe** et créer une 2e **vue interne** en spécifiant tous vos réseaux internes (**DMZ, SERVEURS et LAN**) dans le fichier **/ | ||
| + | |||
| + | < | ||
| + | acl " | ||
| + | 192.168.1.0/ | ||
| + | localhost; | ||
| + | }; | ||
| + | |||
| + | acl " | ||
| + | any; | ||
| + | }; | ||
| + | |||
| + | view " | ||
| + | match-clients { " | ||
| + | recursion no; | ||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | }; | ||
| + | |||
| + | view " | ||
| + | match-clients { " | ||
| + | recursion no; | ||
| + | zone " | ||
| + | type master; | ||
| + | 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.1760280392.txt.gz · Dernière modification : 2025/10/12 16:46 de admin
