FICHE TECHNIQUE. Linux Tutoriel. Cache DNS avec Bind 9. TUTORIEL Starinux de création d'un cache DNS avec Bind 9



Documents pareils
Installer un domaine DNS

LOSLIER Mathieu. Filière Informatique et Réseau 1 ère année. TP DNS. Responsable : LOHIER Stephane. Chargé de TD : QUIDELLEUR Aurélie

Domain Name Service (DNS)

- FICHE DE PROCEDURE - Configurer un serveur DNS avec Bind9 sur Debian

Installation du service DNS sous Gnu/Linux

Exemple d application: l annuaire DNS Claude Chaudet

Administration de réseaux. Marc Baudoin

TP DNS Utilisation de BIND sous LINUX

DNS. Olivier Aubert 1/27

Comment fonctionne le serveur cache (1) DNS Session 2: Fonctionnement du cache DNS. Historique du support de cours

Introduction au DNS. Les noms de domaine s'écrivent de la gauche vers la droite, en remontant vers la racine et sont séparés par un "." (point).

Bind, le serveur de noms sous Linux

Domaine Name System. Auteur: Congduc Pham, Université Lyon 1. Figure 1: Schéma des salles TP11 et TD4

TUTORIAL CONFIGURATION DE BIND ET INSTALLATION DE ZIMBRA

TP DHCP et DNS. Université Pierre Mendès France U.F.R. Sciences de l Homme et de la Société Master IC²A

TCP/IP - DNS. Roger Yerbanga contact@yerbynet.com

Il est possible d associer ces noms aux langages numérique grâce à un système nommé DNS(Domain Name System)

Configuration du réseau

Partage de connexion sous Debian Linux

DNS : Domaine Name System

Corrigé du TP 6 Réseaux

TP HTTP. Université Pierre Mendès France U.F.R. Sciences de l Homme et de la Société Master IC²A

Gestion centralisée d un réseau de sites discrets. Nicolas JEAN

LYCEE FRANCO-MEXICAIN HOMERO 1521 COLONIA POLANCO MEXICO ; D.F.

Installer et configurer un serveur Zimbra

Mise en place d un serveur DNS sous linux (Debian 6)

Nommage et adressage dans Internet

Ce cours est la propriété de la société CentralWeb. Il peut être utilisé et diffusé librement à des fins non commerciales uniquement.

Résolution de nom avec Bind

Étude de l application DNS (Domain Name System)

Il est recommandé de fermer les serveurs DNS récursifs ouverts

SECURIDAY 2012 Pro Edition

La résolution de noms

REPARTITION DE CHARGE LINUX

BIND : installer un serveur DNS

Installation Serveur DNS Bind9 Ubuntu LTS

Master d'informatique 1ère année Réseaux et protocoles

Domain Name System ot ol F. N 1

Domain Name System. F. Nolot

DOMAIN NAME SYSTEM. CAILLET Mélanie. Tutoriel sur le DNS. Session Option SISR

Corrigé du TP 6 Réseaux

La couche Applicatiopn

B1-4 Administration de réseaux

DNS et Mail. LDN 15 octobre DNS et Mail. Benjamin Bayart, Fédération FDN. DNS - fichier de zone. DNS - configuration

Gérer son DNS. Matthieu Herrb. tetaneutral.net. Atelier Tetaneutral.net, 10 février

Administration Système & Réseau. Domain Name System Historique & Concepts Fonctionnalités & Hiérarchie Requêtes & Base de donnée DNS

Administration de Parc Informatique TP03 : Résolution de noms

titre : CENTOS_BIND_install&config Système : CentOS 5.7 Technologie : Bind 9.3 Auteur : Charles-Alban BENEZECH

1 Présentation du module sr005 2 I Administration d un serveur DNS... 2 II Organisation... 2

Domain Name System. AFNIC (12/12/07) DNS - 1

machine.domaine

TP LINUX Travaux avec Debian ETCH

Résolution de noms. Résolution de noms

Introduction...3. Objectifs...3 Contexte...3 nslookup/dig/host...3 whois...3. Introduction...4

Installation d un serveur DNS (Domaine name System) sous Ubuntu Server 12.10

1 Configuration réseau des PC de la salle TP

TP de réseaux : Domain Name Server.

Réseaux. DNS (Domaine Name System) Master Miage 1 Université de Nice - Sophia Antipolis. (second semestre )

Construction d un fichier de zone Déboguage et dépannage

Instructions Mozilla Thunderbird Page 1

Télécommunications. IPv4. IPv4 classes. IPv4 réseau locaux. IV - IPv4&6, ARP, DHCP, DNS

Réseaux IUP2 / 2005 DNS Système de Noms de Domaine

Domain Name Service (DNS)

WEB page builder and server for SCADA applications usable from a WEB navigator

Domain Name System. Schéma hiérarchique. Relation

INTERNET & RESEAUX. Dino LOPEZ PACHECO lopezpac@i3s.unice.fr

Installation d'un Contrôleur Principal de Domaine SAMBA 4

Internet Group Management Protocol (IGMP) Multicast Listener Discovery ( MLD ) RFC 2710 (MLD version 1) RFC 3810 (MLD version 2)

Ce TP consiste à installer, configurer et tester un serveur DNS sous Linux. Serveur open source : bind9 Distribution : Mandriva

Chapitre 2: Configuration de la résolution de nom

SECURIDAY 2013 Cyber War

Les Serveurs sous Linux

Nouvelle version de Zonecheck, la 3.0, avec tests DNSSEC

Guide pour l Installation des Disques Durs SATA et Configuration RAID

Sécurité des réseaux Les attaques

INSTALLATION D UN SERVEUR DNS SI5

Imprimantes et partage réseau sous Samba avec authentification Active Directory

V - Les applications. V.1 - Le Domain Name System. V Organisation de l espace. Annuaire distribué. Définition. Utilisation par le resolver

Le service de nom : DNS

TP LINUX : LINUX-SAMBA SERVEUR DE FICHIERS POUR UTILISATEURS WINDOWS

NTP (Network Time Protocol)

Introduction au DNS. Bertrand Bonnefoy-Claudet. 10 février 2014

IP & Co. 1. Service DHCP. L'objectif de ce TP est de voir l'ensemble des services élémentaires mis en oeuvre dans les réseaux IP.

Installer OpenJabNab dans une framboise (un Raspberry Pi)

LéaBook, Chapitre : Réseau

ASRb/Unix Avancé II. Chapitre 2. Utilitaires réseaux. Arnaud Clérentin, IUT d Amiens, département Informatique

M Architecture des réseaux

Contents Windows

English Q&A #1 Braille Services Requirement PPTC Q1. Would you like our proposal to be shipped or do you prefer an electronic submission?

DOCUMENTATION - FRANCAIS... 2

France SMS+ MT Premium Description

calls.paris-neuroscience.fr Tutoriel pour Candidatures en ligne *** Online Applications Tutorial

TABLE DES MATIERES A OBJET PROCEDURE DE CONNEXION

Domaine Name Service ( DNS )

Internet Protocol. «La couche IP du réseau Internet»

Modèle Client Serveur : Les Services Réseaux

Transcription:

Starinux Auteur : Jean-Yves Bossard FICHE TECHNIQUE Linux Tutoriel Cache DNS avec Bind 9 TUTORIEL Starinux de création d'un cache DNS avec Bind 9 La distribution utilisée pour ce tutoriel est une Debian SID. 1. Configuration du fichier /etc/bind/named.conf Dans le fichier /etc/bind/named.conf doit figurer l'entrée suivante : zone "127.in-addr.arpa" { type master file "/etc/bind/db.127" zone "0.in-addr.arpa" { type master file "/etc/bind/db.0" include "/etc/bind/named.conf.options" 2. Configuration du fichier /etc/bind/named.conf.options Dans le fichier /etc/bind/named.conf.options doit figurer l'entrée suivante options { directory "/var/cache/bind" // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. 1

// Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { 80.10.246.130 #Si vous etes abonne chez Wanadoo 80.10.246.3 auth-nxdomain no # conform to RFC1035 3. Dans le répertoire /var/cache/bind doivent figurer les fichiers de zone suivants /var/cache/bind/db.127 /var/cache/bind/db.root 3.1 Fichier /var/cache/bind/db.127 --------------------------------------------- BIND reverse data file for local loopback interface $TTL 604800 @ IN SOA localhost. root.localhost. ( 1 Serial 604800 Refresh 86400 Retry 2419200 Expire 604800 ) Negative Cache TTL @ IN NS localhost. 1.0.0 IN PTR localhost. 3.2 Fichier /var/cache/bind/db.root <<>> DiG 9.2.3 <<>> ns. @a.root-servers.net. Got answer: ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18944 flags: qr aa rd QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13 QUESTION SECTION:. IN NS. 518400 IN NS A.ROOT-SERVERS.NET. 2

. 518400 IN NS B.ROOT-SERVERS.NET.. 518400 IN NS C.ROOT-SERVERS.NET.. 518400 IN NS D.ROOT-SERVERS.NET.. 518400 IN NS E.ROOT-SERVERS.NET.. 518400 IN NS F.ROOT-SERVERS.NET.. 518400 IN NS G.ROOT-SERVERS.NET.. 518400 IN NS H.ROOT-SERVERS.NET.. 518400 IN NS I.ROOT-SERVERS.NET.. 518400 IN NS J.ROOT-SERVERS.NET.. 518400 IN NS K.ROOT-SERVERS.NET.. 518400 IN NS L.ROOT-SERVERS.NET.. 518400 IN NS M.ROOT-SERVERS.NET. ADDITIONAL SECTION: A.ROOT-SERVERS.NET. 3600000 IN A 198.41.0.4 B.ROOT-SERVERS.NET. 3600000 IN A 192.228.79.201 C.ROOT-SERVERS.NET. 3600000 IN A 192.33.4.12 D.ROOT-SERVERS.NET. 3600000 IN A 128.8.10.90 E.ROOT-SERVERS.NET. 3600000 IN A 192.203.230.10 F.ROOT-SERVERS.NET. 3600000 IN A 192.5.5.241 G.ROOT-SERVERS.NET. 3600000 IN A 192.112.36.4 H.ROOT-SERVERS.NET. 3600000 IN A 128.63.2.53 I.ROOT-SERVERS.NET. 3600000 IN A 192.36.148.17 J.ROOT-SERVERS.NET. 3600000 IN A 192.58.128.30 K.ROOT-SERVERS.NET. 3600000 IN A 193.0.14.129 L.ROOT-SERVERS.NET. 3600000 IN A 198.32.64.12 M.ROOT-SERVERS.NET. 3600000 IN A 202.12.27.33 4. Modifier le fichier /etc/resolv.conf ou /etc/ppp/resolv.conf nameserver 127.0.0.1 searchname mon.domain.net 5. Relancer Bind9 /etc/init.d/bind9 restart 3

6. Tester que le cache DNS fonctionne Lancer la commande suivante pour voir si en local cela fonctionne : dig @mon.adresse.ip.perso mon.domain.net Exemple : dig @82.127.3.18 jybserver.homelinux.net Le résultat de la commande doit être : jyb@jybserver:/etc/bind$ dig @82.127.3.18 jybserver.homelinux.net <<>> DiG 9.2.4rc7 <<>> @82.127.3.18 jybserver.homelinux.net Got answer: ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49991 flags: qr rd ra QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0 QUESTION SECTION: jybserver.homelinux.net. IN A jybserver.homelinux.net. 10786 IN A 82.127.3.18 AUTHORITY SECTION:. 51882 IN NS D.ROOT-SERVERS.net.. 51882 IN NS E.ROOT-SERVERS.net.. 51882 IN NS F.ROOT-SERVERS.net.. 51882 IN NS G.ROOT-SERVERS.net.. 51882 IN NS H.ROOT-SERVERS.net.. 51882 IN NS I.ROOT-SERVERS.net.. 51882 IN NS J.ROOT-SERVERS.net.. 51882 IN NS K.ROOT-SERVERS.net.. 51882 IN NS L.ROOT-SERVERS.net.. 51882 IN NS M.ROOT-SERVERS.net.. 51882 IN NS A.ROOT-SERVERS.net.. 51882 IN NS B.ROOT-SERVERS.net.. 51882 IN NS C.ROOT-SERVERS.net. Query time: 2 msec SERVER: 82.127.3.18#53(82.127.3.18) WHEN: Wed Dec 8 00:24:28 2004 MSG SIZE rcvd: 265 Lancer la commande suivante pour vérifier que le cache DNS fonctionne bien dig www.free.fr Le résultat de la commande doit être : -------------------------------------------------------------- 4

jyb@jybserver:/etc/bind$ dig www.free.fr <<>> DiG 9.2.4rc7 <<>> www.free.fr Got answer: ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39570 flags: qr rd ra QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0 QUESTION SECTION: www.free.fr. IN A www.free.fr. 79425 IN A 213.228.0.42 AUTHORITY SECTION:. 51729 IN NS K.ROOT-SERVERS.NET.. 51729 IN NS L.ROOT-SERVERS.NET.. 51729 IN NS M.ROOT-SERVERS.NET.. 51729 IN NS A.ROOT-SERVERS.NET.. 51729 IN NS B.ROOT-SERVERS.NET.. 51729 IN NS C.ROOT-SERVERS.NET.. 51729 IN NS D.ROOT-SERVERS.NET.. 51729 IN NS E.ROOT-SERVERS.NET.. 51729 IN NS F.ROOT-SERVERS.NET.. 51729 IN NS G.ROOT-SERVERS.NET.. 51729 IN NS H.ROOT-SERVERS.NET.. 51729 IN NS I.ROOT-SERVERS.NET.. 51729 IN NS J.ROOT-SERVERS.NET. Query time: 1 msec SERVER: 127.0.0.1#53(127.0.0.1) WHEN: Wed Dec 8 00:27:01 2004 MSG SIZE rcvd: 256 ----------------------------------------------------------------- 5