
j'ouvre ce fil avec une vraie question de débutant et il y en aura certainement d'autres au fil de mes découvertes et peut-être aussi les vôtres...
Je commence mon apprentissage au sujet du DNS avec la commande : nslookup
Je fais un petit test :
Code : Tout sélectionner
$ nslookup google.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: google.com
Address: 142.250.74.238
Name: google.com
Address: 2a00:1450:4007:813::200e
je teste ça dans Firefox > 142.250.74.238
Génial j'arrive chez mon pote

Ensuite je me dis que ça pourrait être intéressant (p.ex. pour écrire des règles de pare-feu) de récupérer l'IP correspondant au site:
$ LANG=C nslookup google.com 8.8.8.8 | grep -P '^Address: [0-9]*\.' |cut -d ' ' -f 2
Test avec le navigateur lynx
Code : Tout sélectionner
$ lynx $(nslookup google.com 8.8.8.8 | grep -P '^Address: [0-9]*\.')
qui m'affiche bien le moteur de recherche :
Recherche Images Maps Play YouTube Actualités Gmail Drive Plus »
Historique Web | Paramètres | Connexion
Google
_______________________________________________________
Recherche Google J'ai de la chance Recherche avancée
Google disponible en : English
Solutions d'entreprise À propos de Google Google.fr
© 2022 - Confidentialité - Conditions

MAIS.... si je teste ICI
... ça me renvoie la page index.html du serveur Apache que lol entretient avec

Code : Tout sélectionner
$ lynx $(nslookup debian-fr.xyz 8.8.8.8 | grep -P '^Address: [0-9]*\.')
Debian Logo Apache2 Debian Default Page
It works!
This is the default welcome page used to test the correct operation of the Apache2 server after installation on Debian systems. If you can read this page, it means
that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to
operate your HTTP server.
If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If
the problem persists, please contact the site's administrator.
Configuration Overview
Debian's Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Debian tools.
The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server
itself can be found by accessing the manual if the apache2-doc package was installed on this server.
The configuration layout for an Apache2 web server installation on Debian systems is as follows:
/etc/apache2/
|-- apache2.conf
| `-- ports.conf
|-- mods-enabled
| |-- *.load
| `-- *.conf
|-- conf-enabled
| `-- *.conf
|-- sites-enabled
| `-- *.conf
* apache2.conf is the main configuration file. It puts the pieces .....
.... Adieu mes illusions d'avoir compris la base du DNS -- je me vante un peu

Alors Qu'est-ce qui se passe avec le DNS du forum ???
