You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.7 KiB
99 lines
2.7 KiB
\chapter{Domain Name Service} |
|
\label{DNS} |
|
|
|
\section{Outils de base} |
|
|
|
\subsection{host} |
|
\index{host} |
|
|
|
C'est vraiment la commande \textit{vanilla} pour tout ce qui touche à la |
|
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 ? |
|
|
|
% ------------------------------------------------------------ |
|
|
|
\subsection {nslookup} |
|
\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} |
|
|
|
% ------------------------------------------------------------ |
|
|
|
\subsection{dig} |
|
\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> |
|
|
|
% ------------------------------------------------------------ |
|
% \subsection{delv} |
|
% \index{delv} |
|
% |
|
Nouvel outil en rapport avec DNSSEC\index{DNSSEC}. |
|
% XXX |
|
% \index{XXX} |
|
% http://www.bortzmeyer.org/delv.html |
|
% XXX |
|
% ------------------------------------------------------------ |
|
|
|
\subsection{checkresolv} |
|
|
|
|
|
Outil très basique conçu et bricolé par Tonton~Th au siècle |
|
dernier lors d'un séjour à Frontignan-plage. Hélas, les sources |
|
semblent définitivement perdues. |
|
|
|
Une ré-écriture s"impose\dots |
|
|
|
% ------------------------------------------------------------ |
|
\section{DHCP} \index{DHCP} |
|
|
|
\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} |
|
|
|
% ------------------------------------------------------------ |
|
\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} |
|
|
|
|
|
|
|
|
|
|
|
|