Commandes Linux : dnstracer

DNSTRACER

Installé avec le paquet dnstracer

 

Afficher la version de la commande dnstracer

apt-cache policy dnstracer

 

Options utiles

    -4 : Recours à l’IPv4 uniquement
    -s : Choix du serveur pour la requête initiale. Par défaut, les serveurs DNS définis dans /etc/resolv.conf sont consultés
    -o : Affichage des réponses finales reçues
    -c : Ne pas utiliser le cache local

 

Afficher la chaine de résolution des serveurs de noms jusqu’aux serveurs autoritaires pour la zone

dnstracer -4 -o opensharing.fr

ex :

# dnstracer -4 -o opensharing.fr
Tracing to opensharing.fr[a] via 127.0.0.1, maximum of 3 retries
127.0.0.1 (127.0.0.1) 
 |\___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried
 |\___ dns18.ovh.net [opensharing.fr] (213.251.188.138) Got authoritative answer 
 |\___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
  \___ ns18.ovh.net [opensharing.fr] (213.251.128.138) Got authoritative answer 

ns18.ovh.net (213.251.128.138)          opensharing.fr -> 213.186.33.4
dns18.ovh.net (213.251.188.138)         opensharing.fr -> 213.186.33.4

 

Afficher la chaine de résolution en partant des serveurs racines

dnstracer -4 -o -s . opensharing.fr

ex :

# dnstracer -4 -o -s . opensharing.fr
Tracing to opensharing.fr[a] via A.ROOT-SERVERS.NET, maximum of 3 retries
A.ROOT-SERVERS.NET [.] (198.41.0.4) 
 |\___ d.ext.nic.fr [fr] (2001:0500:002e:0000:0000:0000:0000:0002) Not queried
 |\___ d.ext.nic.fr [fr] (192.5.4.2) 
 |     |\___ ns18.ovh.net [opensharing.fr] (213.251.128.138) Got authoritative answer 
 |     |\___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
 |      \___ dns18.ovh.net [opensharing.fr] (213.251.188.138) Got authoritative answer 
 |      \___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried
 |\___ d.nic.fr [fr] (2001:0678:000c:0000:0000:0000:0000:0001) Not queried
 |\___ d.nic.fr [fr] (194.0.9.1) 
 |     |\___ ns18.ovh.net [opensharing.fr] (213.251.128.138) (cached)
 |     |\___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
 |      \___ dns18.ovh.net [opensharing.fr] (213.251.188.138) (cached)
 |      \___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried
 |\___ g.ext.nic.fr [fr] (2001:0678:004c:0000:0000:0000:0000:0001) Not queried
 |\___ g.ext.nic.fr [fr] (194.0.36.1) 
 |     |\___ dns18.ovh.net [opensharing.fr] (213.251.188.138) (cached)
 |     |\___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried
 |      \___ ns18.ovh.net [opensharing.fr] (213.251.128.138) (cached)
 |      \___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
 |\___ f.ext.nic.fr [fr] (2001:067c:1010:0011:0000:0000:0000:0053) Not queried
 |\___ f.ext.nic.fr [fr] (194.146.106.46) 
 |     |\___ ns18.ovh.net [opensharing.fr] (213.251.128.138) (cached)
 |     |\___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
 |      \___ dns18.ovh.net [opensharing.fr] (213.251.188.138) (cached)
 |      \___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried
 |\___ e.ext.nic.fr [fr] (2a00:0d78:0000:0102:0193:0176:0144:0022) Not queried
  \___ e.ext.nic.fr [fr] (193.176.144.22) 
       |\___ ns18.ovh.net [opensharing.fr] (213.251.128.138) (cached)
       |\___ ns18.ovh.net [opensharing.fr] (2001:41d0:0001:198a:0000:0000:0000:0001) Not queried
        \___ dns18.ovh.net [opensharing.fr] (213.251.188.138) (cached)
        \___ dns18.ovh.net [opensharing.fr] (2001:41d0:0001:4a8a:0000:0000:0000:0001) Not queried

dns18.ovh.net (213.251.188.138)         opensharing.fr -> 213.186.33.4
ns18.ovh.net (213.251.128.138)          opensharing.fr -> 213.186.33.4

Proche de :
dig opensharing.fr +trace

Fermer le menu
%d blogueurs aiment cette page :