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 | ||
| elearning:workbooks:debian:11:sec:l106 [2025/12/04 09:29] – admin | elearning:workbooks:debian:11:sec:l106 [2025/12/07 14:09] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 25: | Ligne 25: | ||
| * 2.5 - Utilisation | * 2.5 - Utilisation | ||
| * 2.6 - Analyse des Résultats | * 2.6 - Analyse des Résultats | ||
| - | | + | |
| - | * LAB #3 - La commande chroot | + | * 3.1 - Le Serveur DNS |
| + | * 3.2 - Préparation à l' | ||
| + | * 3.3 - Installation | ||
| + | * 3.4 - Les fichiers de configuration | ||
| + | * 3.5 - Utilisation | ||
| + | * 3.6 - Créer les Pairs de Clefs | ||
| + | * 3.7 - Modifier la Configuration de Bind | ||
| + | * 3.8 - Signer la Zone | ||
| + | | ||
| =====Le Problématique===== | =====Le Problématique===== | ||
| Ligne 2518: | Ligne 2526: | ||
| Retournez à l' | Retournez à l' | ||
| - | Ouvrez un navigateur web dans la VM et saississez | + | Ouvrez un navigateur web dans la VM et saisissez |
| {{ : | {{ : | ||
| Ligne 2553: | Ligne 2561: | ||
| {{ : | {{ : | ||
| - | =====Les Contres-Mesures===== | ||
| - | Les contre-mesures consistent en la mise en place de chroot pour certains serveurs ainsi que le durcissement de la configuration de serveurs d' | + | =====LAB #3 - Sécuriser |
| - | ====LAB #3 - La commande chroot==== | + | ====3.1 - Le serveur DNS==== |
| - | Le chrootage permet de séparer | + | Le principe du DNS est basé sur l' |
| - | Sous Debian 12 le binaire chroot | + | Le **DNS** ( Domain Name Service ) est né peut après l' |
| + | |||
| + | Lorsqu' | ||
| + | |||
| + | Ce processus tente d' | ||
| + | |||
| + | Si cette tentative échoue, le serveur DNS cherche le serveur de domaine pour le **TLD** ( Top Level Domain ) dans son cache afin de lui demander l' | ||
| + | |||
| + | Si cette recherche échoue, le serveur s' | ||
| + | |||
| + | Le serveur DNS sert à faire la résolution de noms. Autrement dit de traduire une adresse Internet telle que **www.ittraining.com **en **numéro IP**. | ||
| + | |||
| + | ====3.2 - Préparation à l' | ||
| + | |||
| + | Le serveur DNS nécessite que la machine sur laquelle il est installé | ||
| + | |||
| + | * Modification de l' | ||
| + | * Définition d'un nom FQDN (Fully Qualified Domain Name) | ||
| + | * Vérification du fichier / | ||
| + | |||
| + | Afin d' | ||
| + | |||
| + | * **FQDN** - debian12.ittraining.loc | ||
| + | * **Adresse IP** - 10.0.2.46 | ||
| + | |||
| + | Vérifiez la configuration de la VM : | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| - | /usr/sbin/chroot | + | debian12 |
| + | |||
| + | root@debian12: | ||
| + | |||
| + | root@debian12: | ||
| + | debian12.ittraining.loc | ||
| + | |||
| + | root@debian12: | ||
| + | NAME UUID TYPE DEVICE | ||
| + | ip_fixe | ||
| + | lo c4172990-a224-464f-a1de-9820ca5e83c8 | ||
| + | Wired connection 1 77c569e6-3176-4c10-8008-40d7634d2504 | ||
| + | |||
| + | root@debian12: | ||
| + | 1: lo: < | ||
| + | link/loopback 00: | ||
| + | inet 127.0.0.1/8 scope host lo | ||
| + | | ||
| + | inet6 ::1/128 scope host noprefixroute | ||
| + | | ||
| + | 2: ens18: < | ||
| + | link/ether 56: | ||
| + | altname enp0s18 | ||
| + | inet 10.0.2.46/ | ||
| + | | ||
| + | inet6 fe80:: | ||
| + | | ||
| + | |||
| + | root@debian12: | ||
| + | 127.0.0.1 | ||
| + | 10.0.2.46 | ||
| + | |||
| + | # The following lines are desirable for IPv6 capable hosts | ||
| + | ::1 | ||
| + | ff02::1 ip6-allnodes | ||
| + | ff02::2 ip6-allrouters | ||
| </ | </ | ||
| - | Commencez par créer un répertoire pour l' | + | <WRAP center round important 50%> |
| + | **Important** - La configuration du serveur DNS dépend du nom de votre machine. Dans le cas où vous changeriez ce nom, vous devez reconfigurer votre serveur DNS en éditant les fichiers de configuration directement. | ||
| + | </ | ||
| + | |||
| + | ====3.3 - Installation==== | ||
| + | |||
| + | Pour installer le serveur DNS, utilisez la commande **APT**: | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | |||
| + | root@debian12: | ||
| + | ● named.service - BIND Domain Name Server | ||
| + | | ||
| + | | ||
| + | Docs: man: | ||
| + | Main PID: 32581 (named) | ||
| + | | ||
| + | Tasks: 26 (limit: 19123) | ||
| + | | ||
| + | CPU: 215ms | ||
| + | | ||
| + | | ||
| + | |||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| + | Dec 07 11:19:19 debian12.ittraining.loc named[32581]: | ||
| </ | </ | ||
| - | Le binaire **/ | + | ===Options de la commande named=== |
| + | |||
| + | Les options de cette commande sont : | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | usage: named [-4|-6] [-c conffile] [-d debuglevel] [-D comment] [-E engine] | ||
| + | | ||
| + | [-S sockets] [-t chrootdir] [-u username] [-U listeners] | ||
| + | [-X lockfile] [-m {usage|trace|record}] | ||
| + | [-M fill|nofill] | ||
| + | usage: named [-v|-V|-C] | ||
| + | named: extra command line arguments | ||
| + | </code> | ||
| - | root@debian12: | + | ====3.4 |
| - | -rwxr-xr-x. 1 root root 48112 Sep 20 2022 / | + | |
| - | root@debian12: | + | Sous Debian12, les fichiers de configuration de **bind9** se trouvent dans **/etc/bind** : |
| - | root@debian12: | + | < |
| - | -rwsr-sr-x. 1 root root 48112 Sep 20 2022 / | + | root@debian12: |
| + | total 48 | ||
| + | -rw-r--r-- 1 root root 2928 Oct 22 17:38 bind.keys | ||
| + | -rw-r--r-- | ||
| + | -rw-r--r-- 1 root root 271 Oct 22 17:38 db.127 | ||
| + | -rw-r--r-- 1 root root 237 Oct 22 17:38 db.255 | ||
| + | -rw-r--r-- 1 root root 353 Oct 22 17:38 db.empty | ||
| + | -rw-r--r-- 1 root root 270 Oct 22 17:38 db.local | ||
| + | -rw-r--r-- 1 root bind 458 Oct 22 17:38 named.conf | ||
| + | -rw-r--r-- 1 root bind 498 Oct 22 17:38 named.conf.default-zones | ||
| + | -rw-r--r-- 1 root bind 165 Oct 22 17:38 named.conf.local | ||
| + | -rw-r--r-- 1 root bind 846 Oct 22 17:38 named.conf.options | ||
| + | -rw-r----- 1 bind bind 100 Dec 7 11:19 rndc.key | ||
| + | -rw-r--r-- 1 root root 1317 Oct 22 17:38 zones.rfc1918 | ||
| </ | </ | ||
| - | Créez maintenant un script | + | ===named.conf=== |
| + | |||
| + | Le fichier | ||
| + | |||
| + | < | ||
| + | root@debian12: | ||
| + | // This is the primary configuration file for the BIND DNS server named. | ||
| + | // | ||
| + | // Please read / | ||
| + | // structure of BIND configuration files in Debian, *BEFORE* you customize | ||
| + | // this configuration file. | ||
| + | // | ||
| + | // If you are just adding zones, please do that in / | ||
| + | |||
| + | include "/ | ||
| + | include "/ | ||
| + | include "/ | ||
| + | </ | ||
| + | |||
| + | Les directives **include**, | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | options { | ||
| + | directory "/ | ||
| - | root@debian12:~# cat /bin/chroot | + | // If there is a firewall between you and nameservers you want |
| - | #!/bin/bash | + | // to talk to, you may need to fix the firewall to allow multiple |
| - | exec -c /usr/sbin/chroot | + | // ports to talk. See http://www.kb.cert.org/ |
| + | |||
| + | // If your ISP provided one or more IP addresses for stable | ||
| + | // nameservers, | ||
| + | // Uncomment the following block, and insert the addresses replacing | ||
| + | // the all-0's placeholder. | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | // If BIND logs error messages about the root key being expired, | ||
| + | // you will need to update your keys. See https:// | ||
| + | // | ||
| + | dnssec-validation auto; | ||
| + | |||
| + | listen-on-v6 { any; }; | ||
| + | }; | ||
| </ | </ | ||
| - | Rendez ce script exécutable | + | < |
| + | root@debian12:~# cat / | ||
| + | // | ||
| + | // Do any local configuration here | ||
| + | // | ||
| + | |||
| + | // Consider adding the 1918 zones here, if they are not used in your | ||
| + | // organization | ||
| + | //include "/ | ||
| + | </ | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | // prime the server with knowledge of the root servers | ||
| + | zone " | ||
| + | type hint; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | // be authoritative for the localhost forward and reverse zones, and for | ||
| + | // broadcast zones as per RFC 1912 | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| </ | </ | ||
| - | Il est maintenant nécessaire | + | ===Les Sections de Zone=== |
| + | |||
| + | **La Valeur Type** | ||
| + | |||
| + | Maintenant, étudions les sections de zones. La valeur " | ||
| + | |||
| + | * **master** | ||
| + | * Ce type définit le serveur DNS comme serveur maître ayant **autorité** sur la zone concernée. | ||
| + | * **slave** | ||
| + | * Ce type définit le serveur DNS comme serveur esclave pour la zone concernée. Ceci implique que la zone est une réplication d'une zone maîtresse. Un type de zone esclave contiendra aussi une directive **masters** indiquant | ||
| + | * **stub** | ||
| + | * Ce type définit le serveur DNS comme serveur esclave pour la zone concernée mais uniquement pour les **enregistrements** de type **NS**. | ||
| + | * **forward** | ||
| + | * Ce type définit le serveur DNS comme serveur de transit pour la zone concernée. Ceci implique que toute requête est retransmise vers un autre serveur. | ||
| + | * **hint** | ||
| + | * Ce type définit la zone concernée comme une zone racine. Ceci implique que lors du démarrage du serveur, cette zone est utilisée pour récupérer les adresses des serveurs DNS racine. | ||
| + | |||
| + | La valeur " | ||
| + | |||
| + | **La Valeur File** | ||
| + | |||
| + | La deuxième directive dans une section de zone comporte la valeur **file**. Il indique | ||
| + | |||
| + | ===Exemples de Sections de Zone=== | ||
| + | |||
| + | Chaque section de zone, à l' | ||
| + | |||
| + | La zone " | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | zone " | ||
| + | type hint; | ||
| + | file "/ | ||
| + | }; | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | La section de zone fait correspondre un nom avec une adresse IP tandis que la section de zone inversée fait l' | ||
| + | |||
| + | < | ||
| + | adresse_réseau_inversée.in-addr.arpa. | ||
| + | </ | ||
| + | |||
| + | Par exemple | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | ===Sections | ||
| + | |||
| + | Afin de configurer notre serveur correctement, | ||
| + | |||
| + | | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | zone " | ||
| + | type master; | ||
| + | file "/etc/bind/ | ||
| + | forwarders { }; | ||
| + | }; | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | zone " | ||
| + | type master; | ||
| + | file "/etc/ | ||
| + | forwarders { }; | ||
| + | }; | ||
| + | ... | ||
| + | </file> | ||
| + | |||
| + | Ajoutez donc ces deux sections au fichier **/ | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| - | root@debian12: | + | root@debian12: |
| + | // prime the server with knowledge of the root servers | ||
| + | zone " | ||
| + | type hint; | ||
| + | file "/usr/ | ||
| + | }; | ||
| - | root@debian12: | + | // be authoritative for the localhost forward and reverse zones, and for |
| - | | + | // broadcast zones as per RFC 1912 |
| - | libtinfo.so.6 => / | + | |
| - | libc.so.6 => / | + | |
| - | / | + | |
| - | + | ||
| - | root@debian12: | + | |
| - | root@debian12: | + | zone " |
| + | type master; | ||
| + | file "/etc/bind/db.local"; | ||
| + | }; | ||
| - | root@debian12: | + | zone " |
| + | type master; | ||
| + | file "/etc/bind/db.127"; | ||
| + | }; | ||
| - | root@debian12: | + | zone "0.in-addr.arpa" { |
| + | type master; | ||
| + | file "/etc/bind/db.0"; | ||
| + | }; | ||
| - | root@debian12: | + | zone " |
| + | type master; | ||
| + | file "/etc/bind/db.255"; | ||
| + | }; | ||
| - | root@debian12: | + | zone " |
| + | type master; | ||
| + | file "/etc/bind/zones/ittraining.loc"; | ||
| + | forwarders { }; | ||
| + | }; | ||
| - | root@debian12: | + | zone " |
| - | | + | type master; |
| - | | + | file "/etc/bind/ |
| - | libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8afb7be000) | + | |
| - | | + | }; |
| - | /lib64/ld-linux-x86-64.so.2 (0x00007f8afba0a000) | + | </ |
| + | |||
| + | ===Les fichiers de zone=== | ||
| + | |||
| + | La fichiers de zone sont composées de lignes d'une forme: | ||
| + | |||
| + | | nom | TTL | classe | ||
| + | |||
| + | où | ||
| + | |||
| + | * **nom** | ||
| + | * Le nom DNS. | ||
| + | * **TTL** | ||
| + | * La durée de vie en cache de cet enregistrement. | ||
| + | * **classe** | ||
| + | * Le réseau de transport utilisé. Dans notre cas, le réseau est du TCP. La valeur est donc IN. | ||
| + | * **type** | ||
| + | * Le type d' | ||
| + | * SOA - Start of Authority | ||
| + | * NS - Name Server | ||
| + | * A - Address - indique une résolution de nom vers une adresse IP. Ne se trouve que dans les fichiers **.hosts** | ||
| + | * PTR - %%PoinTeR%% - indique une résolution d'une adresse IP vers un nom. Ne se trouve que dans les fichiers inversés. | ||
| + | * MX - Mail eXchange | ||
| + | * CNAME - Canonical Name - un alias d'une machine. | ||
| + | * HINFO - Hardware Info - fournit des informations sur le matériel de la machine | ||
| + | * **donnée** | ||
| + | * La donnée de la ressource: | ||
| + | * Une adresse IP pour un enregistrement de type A | ||
| + | * Un nom de machine pour un eregistrement de type PTR | ||
| + | |||
| + | ==ittraining.loc== | ||
| + | |||
| + | Ce fichier se trouve dans /etc/bind/zones. C'est le fichier qui définit la correspondance du nom de la machine **debian12.ittraining.loc** avec son numéro IP, à savoir le **10.0.2.46**. On définit dans ce fichier les machines qui doivent être appelées par leur nom : | ||
| + | |||
| + | < | ||
| + | root@debian12: | ||
| + | |||
| + | root@debian12: | ||
| - | root@debian12: | + | root@debian12: |
| + | $TTL 3D | ||
| + | @ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | localhost | ||
| + | dnsmaster | ||
| + | debian12.ittraining.loc. | ||
| - | root@debian12:~# cp / | + | ftp IN CNAME debian12.ittraining.loc. |
| + | www IN CNAME debian12.ittraining.loc. | ||
| + | mail IN CNAME debian12.ittraining.loc. | ||
| + | news IN CNAME debian12.ittraining.loc. | ||
| </ | </ | ||
| - | Créez maintenant | + | <WRAP center round important 50%> |
| + | **Important** - Notez le point à la fin de chaque nom de domaine. Notez bien le remplacement du caractère @ dans l' | ||
| + | </ | ||
| + | |||
| + | La première ligne de ce fichier commence par une ligne semblable à celle-ci: | ||
| + | |||
| + | < | ||
| + | $TTL 3D | ||
| + | </ | ||
| + | |||
| + | Cette ligne indique aux autres serveurs DNS pendant combien de temps ils doivent garder en cache les enregistrements de cette zone. La durée peut s' | ||
| + | |||
| + | La deuxième ligne définit une **classe** **IN**ternet, | ||
| + | |||
| + | < | ||
| + | @ | ||
| + | </ | ||
| + | |||
| + | Le caractère **@** correspond au nom de la zone et est une abréviation pour le nom de la zone décrit par le fichier de la zone, soit dans ce cas db.**ittraining.loc**.hosts, | ||
| + | |||
| + | < | ||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | forwarders { }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | Le **numéro de série** doit être modifié chaque fois que le fichier est changé. Il faut noter que dans le cas de plusieurs changements dans la même journée il est nécessaire d' | ||
| + | |||
| + | < | ||
| + | 2025120701 | ||
| + | </ | ||
| + | |||
| + | La ligne suivante indique le temps de rafraîchissement, | ||
| + | |||
| + | < | ||
| + | 8H ; Refresh | ||
| + | </ | ||
| + | |||
| + | La ligne suivante indique le temps entre de nouveaux essaies de mise à jour d'un autre serveur dans le cas où la durée du Refresh a été dépassée : | ||
| + | |||
| + | < | ||
| + | 2H ; Retry | ||
| + | </ | ||
| + | |||
| + | La ligne suivante indique le temps d' | ||
| + | |||
| + | < | ||
| + | 4W ; Expire | ||
| + | </ | ||
| + | |||
| + | La ligne suivante indique le temps minimum pour la valeur TTL, soit un jour: | ||
| + | |||
| + | < | ||
| + | 1D) ; Minimum TTL | ||
| + | </ | ||
| + | |||
| + | Cette ligne identifie notre serveur de noms : | ||
| + | |||
| + | < | ||
| + | IN NS debian12.ittraining.loc. | ||
| + | </ | ||
| + | |||
| + | Dans le cas où notre serveur était également un serveur mail. Nous trouverions aussi une entrée du type SMTP (MX) : | ||
| + | < | ||
| + | IN MX 10 mail.ittraining.loc. | ||
| + | </ | ||
| + | |||
| + | Ci-dessous on définit avec une entrée du type A, les machines que l'on souhaite appeler par leur nom, à savoir **debian12.ittraining.loc** et **localhost** : | ||
| + | |||
| + | < | ||
| + | localhost | ||
| + | ... | ||
| + | debian12.ittraining.loc. | ||
| + | </ | ||
| + | |||
| + | Ci-dessous on définit des **Alias** avec des entrées du type CNAME. Les alias servent à identifier une machine. | ||
| + | |||
| + | < | ||
| + | dnsmaster | ||
| + | </ | ||
| + | |||
| + | Nous pourrions aussi trouver ici des entrées telles: | ||
| + | |||
| + | < | ||
| + | ftp IN CNAME debian12.ittraining.loc. | ||
| + | www IN CNAME debian12.ittraining.loc. | ||
| + | mail IN CNAME debian12.ittraining.loc. | ||
| + | news IN CNAME debian12.ittraining.loc. | ||
| + | </ | ||
| + | |||
| + | ==db.2.0.10.hosts== | ||
| + | |||
| + | Ce fichier se trouve dans / | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| - | root@debian12: | + | root@debian12: |
| - | chroot: | + | $TTL 3D |
| + | @ | ||
| + | 2025120701 ; Serial | ||
| + | 10800 ; Refresh | ||
| + | 3600 ; Retry | ||
| + | 604800 | ||
| + | 86400) ; Minimum TTL | ||
| + | NS debian12.ittraining.loc. | ||
| + | 46 | ||
| </ | </ | ||
| - | Créez | + | Modifiez |
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | -rw-r--r-- 1 root bind 362 Dec 7 12:16 /etc/bind/ | ||
| + | -rw-r--r-- 1 root bind 634 Dec 7 12:06 / | ||
| + | |||
| + | root@debian12: | ||
| + | |||
| + | root@debian12: | ||
| + | -rw-rw-r-- 1 root bind 362 Dec 7 12:16 / | ||
| + | -rw-rw-r-- 1 root bind 634 Dec 7 12:06 /etc/bind/zones/ittraining.loc | ||
| </ | </ | ||
| - | Dernièrement, | + | ====3.5 - Utilisation==== |
| + | |||
| + | Modifiez maintenant | ||
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| + | |||
| + | root@debian12:~# cat /etc/resolv.conf | ||
| + | # Generated by NetworkManager | ||
| + | search ittraining.loc | ||
| + | nameserver 127.0.0.1 | ||
| + | nameserver 8.8.8.8 | ||
| </ | </ | ||
| - | Essayez maintenant de vous connecter en tant que l' | + | Dernièrement, |
| < | < | ||
| - | root@debian12: | + | root@debian12: |
| - | bash-5.2$ pwd | + | root@debian12: |
| - | / | + | ● named.service |
| + | | ||
| + | Active: active (running) since Sun 2025-12-07 12:19:11 CET; 7s ago | ||
| + | Docs: man: | ||
| + | Main PID: 32731 (named) | ||
| + | | ||
| + | Tasks: 18 (limit: 19123) | ||
| + | | ||
| + | CPU: 86ms | ||
| + | | ||
| + | | ||
| - | bash-5.2$ ls | + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: |
| - | bin lib lib64 | + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: |
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:11 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:12 debian12.ittraining.loc named[32731]: | ||
| + | Dec 07 12:19:12 debian12.ittraining.loc named[32731]: | ||
| + | </ | ||
| - | bash-5.2$ ls -la | + | Testez maintenant votre serveur |
| - | total 20 | + | |
| - | drwxr-xr-x. 5 1001 1001 4096 Dec 1 13:59 . | + | |
| - | drwxr-xr-x. 5 1001 1001 4096 Dec 1 13:59 .. | + | |
| - | drwxr-xr-x. 2 1001 1001 4096 Dec 1 13:56 bin | + | |
| - | drwxr-xr-x. 3 1001 1001 4096 Dec 1 13:59 lib | + | |
| - | drwxr-xr-x. 2 1001 1001 4096 Dec 1 13:56 lib64 | + | |
| - | bash-5.2$ exit | + | < |
| - | exit | + | root@debian12:/ |
| + | Server: | ||
| + | Address: | ||
| - | root@debian12: | + | Name: |
| + | Address: 10.0.2.46 | ||
| + | |||
| + | root@debian12: | ||
| + | |||
| + | ; <<>> | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags:; udp: 1232 | ||
| + | ; COOKIE: 74a7e4078e44bf490100000069356348f4e348254883e231 (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; AUTHORITY SECTION: | ||
| + | ittraining.loc. | ||
| + | |||
| + | ;; Query time: 0 msec | ||
| + | ;; SERVER: 127.0.0.1# | ||
| + | ;; WHEN: Sun Dec 07 12:21:44 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 121 | ||
| + | |||
| + | root@debian12: | ||
| + | |||
| + | ; <<>> | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags:; udp: 1232 | ||
| + | ; COOKIE: b019ecafc27e897601000000693563584aff28c151c1bd67 (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; ANSWER SECTION: | ||
| + | 46.2.0.10.in-addr.arpa. 259200 | ||
| + | |||
| + | ;; Query time: 0 msec | ||
| + | ;; SERVER: 127.0.0.1# | ||
| + | ;; WHEN: Sun Dec 07 12:22:00 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 116 | ||
| </ | </ | ||
| - | Notez que l'utilisateur | + | <WRAP center round important 50%> |
| + | **Important** - Notez l'utilisation de l' | ||
| + | </ | ||
| + | |||
| + | ====3.6 - Créer les Pairs de Clefs==== | ||
| + | |||
| + | Utilisez la commande **dnssec-keygen** pour créer la ZSK : | ||
| + | |||
| + | < | ||
| + | root@debian12: | ||
| + | |||
| + | root@debian12:/ | ||
| + | Generating key pair............+.....+...+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+........+...+...+....+...+........+.......+.....+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+.........+..............+....+..+...+.+......+...+..+...+..........+...+.....+...+......+.+........+.+.........+..+.........+......+...+......+.........+..........+......+.....+...+.+.........+...+.....+....+...+............+........+.+...........+...+...+...+........................+...+.......+......+.....+.+....................+....+.....+......................+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ..+......+........+.......+.....+......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*................+.+............+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
| + | Kittraining.loc.+008+18528 | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 50%> | ||
| + | **Important** - L' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | total 24 | ||
| + | -rw-rw-r-- 1 root bind 362 Dec 7 12:16 db.2.0.10.hosts | ||
| + | -rw-rw-r-- 1 root bind 747 Dec 7 13:13 ittraining.loc | ||
| + | -rw-r--r-- 1 root bind 612 Dec 7 13:28 Kittraining.loc.+008+18528.key | ||
| + | -rw------- 1 root bind 1776 Dec 7 13:28 Kittraining.loc.+008+18528.private | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 50%> | ||
| + | **Important** - Dans le nom de chaque fichier, **008** indique l' | ||
| + | </WRAP> | ||
| + | |||
| + | Utilisez la commande **dnssec-keygen** pour créer la KSK : | ||
| + | |||
| + | < | ||
| + | root@debian12: | ||
| + | Generating key pair..+.....+....+......+......+.....+....+...+.....+......+......................+........+....+...+...+.........+..+...+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.....+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.........+.......+......+..+......+.......+.........+..............+.........+.+..+....+.....+....+..+.......+...+..+......+..........+...........+.+....................+...+......+.........+.........+.+......+........+...+............+..........+...+...+....................+....+........+...+....+..................+..............+.........+.......+...+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ..+..+....+..+.......+..+......+.........+....+..+..........+.....+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.......+........+.+.....+.......+........+.......+..+.+......+..............+.+......+.........+...+......+.........+...+.................+................+......+.....+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+....+...+............+..............+..........+.................+.............+.........+..+...+.+..+.........+...+.............+...+.....+....+..+...+......+.......+...+.........+...+.....+.........+....+...........+......+.......+...........+.+.........+.....+.+.....+..................+.+..+.........+.........+.......+........+...................+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
| + | Kittraining.loc.+008+63515 | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 50%> | ||
| + | **Important** - L' | ||
| + | </ | ||
| + | |||
| + | Constatez la présence des pairs de clefs : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | total 24 | ||
| + | -rw-rw-r-- 1 root bind 362 Dec 7 12:16 db.2.0.10.hosts | ||
| + | -rw-rw-r-- 1 root bind 747 Dec 7 13:13 ittraining.loc | ||
| + | -rw-r--r-- 1 root bind 612 Dec 7 13:28 Kittraining.loc.+008+18528.key | ||
| + | -rw------- 1 root bind 1776 Dec 7 13:28 Kittraining.loc.+008+18528.private | ||
| + | -rw-r--r-- 1 root bind 957 Dec 7 13:28 Kittraining.loc.+008+63515.key | ||
| + | -rw------- 1 root bind 3316 Dec 7 13:28 Kittraining.loc.+008+63515.private | ||
| + | </ | ||
| + | |||
| + | ====3.7 - Modifier la Configuration de Bind==== | ||
| + | |||
| + | Ajoutez les deux clefs publiques dans la configuration du fichier de zone **/ | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | root@debian12:/ | ||
| + | $TTL 3D | ||
| + | @ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | localhost | ||
| + | dnsmaster | ||
| + | debian12.ittraining.loc. | ||
| + | |||
| + | ftp IN CNAME debian12.ittraining.loc. | ||
| + | www IN CNAME debian12.ittraining.loc. | ||
| + | mail IN CNAME debian12.ittraining.loc. | ||
| + | news IN CNAME debian12.ittraining.loc. | ||
| + | |||
| + | $include / | ||
| + | $include / | ||
| + | </ | ||
| + | |||
| + | <WRAP center round important 50%> | ||
| + | **Important** - N' | ||
| + | </ | ||
| + | |||
| + | Redémarrez le service **named** : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | root@debian12:/ | ||
| + | ● named.service - BIND Domain Name Server | ||
| + | | ||
| + | | ||
| + | Docs: man: | ||
| + | Main PID: 32952 (named) | ||
| + | | ||
| + | Tasks: 18 (limit: 19123) | ||
| + | | ||
| + | CPU: 83ms | ||
| + | | ||
| + | | ||
| + | |||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | Dec 07 13:32:03 debian12.ittraining.loc named[32952]: | ||
| + | </ | ||
| + | |||
| + | Intérogez le DNS local pour obtenir les clefs publiques : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | ; <<>> | ||
| + | ; (1 server found) | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags:; udp: 1232 | ||
| + | ; COOKIE: 74f4778aedb99b4d01000000693576d3fe2e16da8329795a (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; ANSWER SECTION: | ||
| + | ittraining.loc. | ||
| + | ittraining.loc. | ||
| + | |||
| + | ;; Query time: 4 msec | ||
| + | ;; SERVER: 10.0.2.46# | ||
| + | ;; WHEN: Sun Dec 07 13:45:07 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 879 | ||
| + | </ | ||
| + | |||
| + | ====3.8 - Signer la Zone==== | ||
| + | |||
| + | Les clefs étant maintenant insérées dans la configuration, | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | Verifying the zone using the following algorithms: | ||
| + | - RSASHA256 | ||
| + | Zone fully signed: | ||
| + | Algorithm: RSASHA256: KSKs: 1 active, 0 stand-by, 0 revoked | ||
| + | ZSKs: 1 active, 0 stand-by, 0 revoked | ||
| + | ittraining.loc.signed | ||
| + | |||
| + | root@debian12:/ | ||
| + | -rw-r--r-- 1 root bind 12407 Dec 7 13:39 ittraining.loc.signed | ||
| + | </ | ||
| + | |||
| + | Consultez le fichier **ittraining.loc.signed** : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | ; File written on Sun Dec 7 13:39:03 2025 | ||
| + | ; dnssec_signzone version 9.18.41-1~deb12u1-Debian | ||
| + | ittraining.loc. | ||
| + | 2025120703 ; serial | ||
| + | 28800 ; refresh (8 hours) | ||
| + | 7200 ; retry (2 hours) | ||
| + | 2419200 | ||
| + | 86400 ; minimum (1 day) | ||
| + | ) | ||
| + | 259200 | ||
| + | 20260106113903 20251207113903 18528 ittraining.loc. | ||
| + | ANlboBzlffzcYC1G10cQuxvRP3XC5bvDP1+v | ||
| + | Baxfh/ | ||
| + | B95uAkDGClaGdlFkYtU4voIQJWuAx0Goo6Xa | ||
| + | omEyrIdLGqoj9e2vdn6j2lVpJik9YgCTxP2G | ||
| + | ShVYc632XsAFPXN6SJrR3QdKo1x6KM1uPYdd | ||
| + | OxAX9fGNYj59ZXG84slUxreDejoqn2k8Rx68 | ||
| + | gxuzkIY3oM5aUtbvL8bwjflk121mWxQ4vVhW | ||
| + | R/ | ||
| + | 7Wf+S9kr1i1xT1y078Iqz2twASWBjBnP/ | ||
| + | QtKpn9SvKUEzICTaNA== ) | ||
| + | 259200 | ||
| + | 259200 | ||
| + | 20260106113903 20251207113903 18528 ittraining.loc. | ||
| + | CGtE8nZ2F0JQLAmbyPgrqKLDXjyWg2hZmEcf | ||
| + | 22h2zAxJZWjNWB7k5aLHA6weKkvo7mTnH7sS | ||
| + | pEazWPhaDzmW2BLfdBjeaSZzj+mMWUiXVnUq | ||
| + | LYAMLRXGD1NAPcuSQlyzDpN0JZXwWfQFTpzT | ||
| + | DJttJyChcQgyJmvaJEhIhQK5gRFMaT+Ww1zg | ||
| + | pvAke0HlkSEz9mQxIhff5FqSL00Zyn5mnLBB | ||
| + | N6X1XKQXL/ | ||
| + | 6lz+kMr/ | ||
| + | eYZKmEsD8HOdYJb5JlWicP7cheeKonPXxjrZ | ||
| + | TQqLDJFaRETE+IDnLQ== ) | ||
| + | 86400 | ||
| + | 86400 | ||
| + | 20260106113903 20251207113903 18528 ittraining.loc. | ||
| + | dDLcoBI/ | ||
| + | 775fNQI/ | ||
| + | 2b8Q2Dm26f218L1KYF7NF7dew2s5OUIkfM+V | ||
| + | iZIqBSAFYyAbLYRCfbQA6DxsIgDT6T/ | ||
| + | +jYHNeASGauWunufrSLvbqdsIE0z+JH+3AVE | ||
| + | JaLTeXYL6I+/ | ||
| + | 0lqDK8qRlcbhFF1ngOJHe+Fa5ect9kqnbjCa | ||
| + | 7mwOOmp4v4JA6Myvvut7OEDI5mQItd9HApPl | ||
| + | eM0kvui7mioUEUCM2EXRPtJYXVAELUnqGz1S | ||
| + | hn6EYefpcWvUDo8veg== ) | ||
| + | 259200 | ||
| + | AwEAAZ+2bRM+yedcAeqUR6AdkSzyIeQg1kH4 | ||
| + | 021as3WvYGlOLqeUnfbegNewRYifndXx/ | ||
| + | 84A9L6IZH1ZamuSNxNi7Y0+FZbyq4DJmFnHA | ||
| + | 68Ao5zmOhK76mrQf6SjzQHZWzwtoG0DAApTg | ||
| + | gaRxhmezzjkSr3WNadIoFg4FXU5UaV4ePU5h | ||
| + | hPn+zi34SUYvgPTZsSWb/ | ||
| + | hgRxoaPpjV/ | ||
| + | --More--(18%) | ||
| + | </ | ||
| + | |||
| + | Consultez la section RRSIG du SOA : | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | 259200 | ||
| + | 20260106113903 20251207113903 18528 ittraining.loc. | ||
| + | ANlboBzlffzcYC1G10cQuxvRP3XC5bvDP1+v | ||
| + | Baxfh/ | ||
| + | B95uAkDGClaGdlFkYtU4voIQJWuAx0Goo6Xa | ||
| + | omEyrIdLGqoj9e2vdn6j2lVpJik9YgCTxP2G | ||
| + | ShVYc632XsAFPXN6SJrR3QdKo1x6KM1uPYdd | ||
| + | OxAX9fGNYj59ZXG84slUxreDejoqn2k8Rx68 | ||
| + | gxuzkIY3oM5aUtbvL8bwjflk121mWxQ4vVhW | ||
| + | R/ | ||
| + | 7Wf+S9kr1i1xT1y078Iqz2twASWBjBnP/ | ||
| + | QtKpn9SvKUEzICTaNA== ) | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | Dans cette section on constate : | ||
| + | |||
| + | * L'ID de la clef **18528** utilisée pour la signature, soit la ZSK | ||
| + | * La date et l' | ||
| + | * La date et l' | ||
| + | |||
| + | Configurez Bind pour qu'il utilise le fichier signé : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | root@debian12:/ | ||
| + | // prime the server with knowledge of the root servers | ||
| + | zone " | ||
| + | type hint; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | // be authoritative for the localhost forward and reverse zones, and for | ||
| + | // broadcast zones as per RFC 1912 | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | forwarders { }; | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type master; | ||
| + | file "/ | ||
| + | forwarders { }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | Redémarrez le service **named** : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | root@debian12:/ | ||
| + | ● named.service - BIND Domain Name Server | ||
| + | | ||
| + | | ||
| + | Docs: man: | ||
| + | Main PID: 33227 (named) | ||
| + | | ||
| + | Tasks: 18 (limit: 19123) | ||
| + | | ||
| + | CPU: 88ms | ||
| + | | ||
| + | | ||
| + | |||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | Dec 07 14:02:52 debian12.ittraining.loc named[33227]: | ||
| + | </ | ||
| + | |||
| + | Demandez l' | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | ; <<>> | ||
| + | ; (1 server found) | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags:; udp: 1232 | ||
| + | ; COOKIE: a42dbdb3e931b5b40100000069357b611d705b9c213bca01 (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; ANSWER SECTION: | ||
| + | ittraining.loc. | ||
| + | |||
| + | ;; Query time: 0 msec | ||
| + | ;; SERVER: 10.0.2.46# | ||
| + | ;; WHEN: Sun Dec 07 14:04:33 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 121 | ||
| + | </ | ||
| + | |||
| + | Demandez l' | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | ; <<>> | ||
| + | ; (1 server found) | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags: do; udp: 1232 | ||
| + | ; COOKIE: 14cfa09283a1f4980100000069357b95d90b040d04f37247 (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; ANSWER SECTION: | ||
| + | ittraining.loc. | ||
| + | ittraining.loc. | ||
| + | |||
| + | ;; Query time: 0 msec | ||
| + | ;; SERVER: 10.0.2.46# | ||
| + | ;; WHEN: Sun Dec 07 14:05:25 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 423 | ||
| + | </ | ||
| + | |||
| + | ====3.9 - La chaîne de confiance DNS==== | ||
| + | |||
| + | Créez le DSSet à partir de la clef publique KSK : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | ittraining.loc. IN DS 63515 8 2 909F3FC8A2B34083B1268C0FE7FDAA851252626CDCDF4D8B51D97CB98C62FDA4 | ||
| + | |||
| + | root@debian12:/ | ||
| + | -rw-r--r-- 1 root bind 99 Dec 7 13:39 dsset-ittraining.loc. | ||
| + | |||
| + | root@debian12:/ | ||
| + | ittraining.loc. | ||
| + | </ | ||
| + | |||
| + | Il conviendrait maintenant d' | ||
| + | |||
| + | Quand DNSSEC ne peut pas être validé, le résultat routorné par la commande dig est **SERVFAIL** : | ||
| + | |||
| + | < | ||
| + | root@debian12:/ | ||
| + | |||
| + | ; <<>> | ||
| + | ;; global options: +cmd | ||
| + | ;; Got answer: | ||
| + | ;; ->> | ||
| + | ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 | ||
| + | |||
| + | ;; OPT PSEUDOSECTION: | ||
| + | ; EDNS: version: 0, flags: do; udp: 1232 | ||
| + | ; COOKIE: 5321c94da922f6ca010000006935867f45a42de06e00bfa1 (good) | ||
| + | ;; QUESTION SECTION: | ||
| + | ; | ||
| + | |||
| + | ;; Query time: 140 msec | ||
| + | ;; SERVER: 127.0.0.1# | ||
| + | ;; WHEN: Sun Dec 07 14:51:59 CET 2025 | ||
| + | ;; MSG SIZE rcvd: 78 | ||
| + | </ | ||
| ----- | ----- | ||
| Copyright © 2025 Hugh Norris. | Copyright © 2025 Hugh Norris. | ||