TetaTricks/chap/DNS.tex

100 lines
2.7 KiB
TeX
Raw Normal View History

2020-10-26 23:06:17 +01:00
\chapter{Domain Name Service}
2020-11-10 02:40:30 +01:00
\label{chap:DNS}
2020-10-26 23:06:17 +01:00
2020-11-04 10:12:10 +01:00
\section{Outils de base}
\subsection{host}
2020-10-26 23:06:17 +01:00
\index{host}
2020-11-04 10:12:10 +01:00
C'est vraiment la commande \textit{vanilla} pour tout ce qui touche à la
2020-10-26 23:06:17 +01:00
résolution de nom. Elle propose les premières options de base,
avec une syntaxe facile à retenir. Elle existe, sous des formes
légèrement déviantes, dans une grande partie des
OS\footnote{même dans le sale, c'est dire.} existants de nos jours.
\begin{verbatim}
tth@plop:~ $ host sigfood.dinorama.fr
sigfood.dinorama.fr has address 91.121.221.123
tth@plop:~ $ host -t mx dinorama.fr
dinorama.fr mail is handled by 20 mx1.smeuh.org.
tth@plop:~ $
\end{verbatim}
Ces deux exemples sont encourageants. Est-il possible d'aller
plus loin ?
% ------------------------------------------------------------
2020-11-04 10:12:10 +01:00
\subsection {nslookup}
2020-10-26 23:06:17 +01:00
\index{nslookup}
\begin{quote}
Nslookup is a program to query Internet domain name
servers. Nslookup has two modes: interactive and
non-interactive. Interactive mode allows the user to query
name servers for information about various hosts and domains
or to print a list of hosts in a domain. Non-interactive mode
is used to print just the name and requested information for
a host or domain. »
\end{quote}
% ------------------------------------------------------------
2020-11-04 10:12:10 +01:00
\subsection{dig}
2020-10-26 23:06:17 +01:00
\index{dig}
Dig (\textit{domain information groper}) est un outil d'interrogation
des serveurs DNS. Par défaut, il questionne les serveurs
listés dans \texttt{/etc/resolv.conf}.
Pour résoudre récursivement un nom de domaine à partir de la racine :
\$ dig +trace <nom.de.domaine>
Pour le reverse d'une adresse IP :
\$ dig +trace -x <adresse.ip>
% ------------------------------------------------------------
2020-11-04 10:12:10 +01:00
% \subsection{delv}
% \index{delv}
%
2020-10-26 23:06:17 +01:00
Nouvel outil en rapport avec DNSSEC\index{DNSSEC}.
% XXX
2020-11-04 10:12:10 +01:00
% \index{XXX}
2020-10-26 23:06:17 +01:00
% http://www.bortzmeyer.org/delv.html
% XXX
% ------------------------------------------------------------
2020-11-04 10:12:10 +01:00
\subsection{checkresolv}
2020-10-26 23:06:17 +01:00
Outil très basique conçu et bricolé par Tonton~Th au siècle
2020-11-04 10:12:10 +01:00
dernier lors d'un séjour à Frontignan-plage. Hélas, les sources
semblent définitivement perdues.
Une ré-écriture s"impose\dots
2020-10-26 23:06:17 +01:00
% ------------------------------------------------------------
2020-11-04 10:12:10 +01:00
\section{DHCP} \index{DHCP}
2020-10-26 23:06:17 +01:00
2020-11-04 10:12:10 +01:00
\begin{quote}
The DHCP protocol allows a host to contact a central server which maintains a
list of IP addresses which may be assigned on one or more subnets. A DHCP
client may request an address from this pool, and then use it on a temporary
basis for communication on network.
\end{quote}
% ------------------------------------------------------------
2020-10-26 23:06:17 +01:00
\section{dnsmasq}
\index{dnsmasq}
\begin{quote}
dnsmasq is a lightweight DNS, TFTP and DHCP server. It is intended to
provide coupled DNS and DHCP service to a LAN.
\end{quote}