Comment utiliser la commande NSLookup

Vous tes ici : Accueil > Tutoriaux

Publi le : 02/06/2011 vers 19h
Mise jour le : 02/07/2008 vers 16h
Catgories :
  • Windows
  • Windows Server

Auteur(s) :
Sada AZIRI (Membre depuis le 12/02/2007)
Socit : Microsoft
Fonction : Consultant
Contactez cet auteur - Affichez les ressources de cet auteur

NSLookup (Name Server Lookup) est une commande qui permet de tester la résolution des noms d'hôtes en adresses IP et inversement. Elle permet un rapide diagnostique des problèmes de résolution DNS.

Lorsque vous tapez nslookup dans une invite de commande, le nom d'hôte et l'adresse IP du serveur DNS sont affichées par défaut .

 

Lorsque l’on saisie un nom d'hôte ou un FQDN, une adresse IP est renvoyée.

 

De même si vous saisissez une adresse IP, nslookup renvoie le FQDN.

De plus Nslookup indique si la réponse fait autorité ou non sur le domaine.

Une réponse faisant autorité  (authoritative answer) signifie qu'une zone dns (donc un fichier sur le serveur DNS auquel on est connecté) contient le domaine sur lequel on effectue la  requête et qu'il n'y a donc pas besoin de récupérer l'information auprès d'une autorité racine ou de transférer la requête à un redirecteur.

Une réponse ne fait pas autorité ( Non-authoritative answer)  signifie que que l’information à été récupérée depuis un serveur DNS qui ne fait pas autorité sur la zone.

Dans cet exemple, nslookup fournit le nom et les adresses IP des serveurs de google.fr.

Par défaut la commande nslookup interroge le serveur DNS sur les enregistrements de type A (mappage entre un nom d'hôte et une adresse IPv4). Il est possible d’interroger le serveur DNS sur divers enregistrement en  utilisant la commande Set type = xx (remplacer xx par l’un des types suivants : MX, NS, A, SOA, CNAME, hinfo, any).

Une fois qu’on change le type de requête, les enregistrements retournés restent sur le type spécifié. Pour revenir sur les enregistrements de type A, tapez : Set-type = A ou fermer la fenêtre nslookup.

1.1 Set-type = MX

Recueillir des informations sur les enregistrements MX (serveurs de messagerie) :

> set type=MX
> gmail.com

  • Les deux premières lignes indique le nom et l’adresse IP du serveur DNS local.
  • Les cinq lignes suivantes montrent que le domaine gmail.com à 5 enregistrements MX. Les enregistrements MX possèdent une priorité, également appelé coût. Les mails sont envoyés au serveur ayant le coût le plus faible (5). S’il n’est pas joignable, les mails sont envoyés aux serveurs avec le coût juste au dessus (10).De même s’ils ne sont pas joignables, les serveurs avec un coût de 50 seront contactés.
  •  Les dernières lignes montrent les adresses IP des serveurs MX distants. ( On remarque les mêmes serveurs dans les 5 lignes précédentes).

1.2 Set type =NS

L’enregistrement de ressource de type NS (Name Server) identifie les serveurs DNS de la zone DNS. Permet d’identifier le Serveur de noms autoritaire pour un domaine ou l'enregistrement NS du domaine.

> Set type = NS
> microsoft.com

1.3 Set type =SOA

> Set type =SOA
> microsoft.com

 

  • Primary Name Server :  Nom du serveur qui héberge actuellement la zone DNS principale et qui fait autorité sur la zone DNS. Le nom doit être un FQDN.
     
  • Responsible mail addr : indique l’adresse email de la personne responsable de la zone. Attention, l’adresse doit être de type user.exemple.lanet non user@exemple.lan.
     
  • Serial : Il s’agit d’un numéro de série en 32 bit qui s’incrémente à chaque fois qu’une modification intervient sur le serveur. Ce numéro est de type : YYYYMMDDnn (Année, mois, jour, version). (Changement intervenu le 24 Juin 2008 en version 1). Si il y d’autre modification dans la même journée, le numéro de version s’incrémente.
     
  • Refresh :  Le nombre de seconde depuis que le second serveur à reçu une copie de la zone. Entre parenthèse est indiqué le temps avant la prochaine vérification pour obtenir une nouvelle copie.
     
  • Retry : Nombre de seconde que le premier serveur doit attendre dans le cas ou un refresh à échoué, avant d’effectuer un nouveau refresh avec un second serveur DNS.
     
  • Expire : Nombre de seconde avant qu’un serveur secondaire ne considère ses informations de zone comme n’étant plus autoritative. Si la copie que le serveur détient est plus vieille que 28 jours, elle est considérée comme invalide.
     
  • Default TTL (Time to live) =  Nombre définit en seconde, qu’un enregistrement de zone est valide dans le cache.

1.4 Set type =PTR

> Set type =PTR
> Adresse IP

Les enregistrements PTR(PoinTeRs, pointeurs ) sont des requêtes inversés vers des noms d'hôtes.

1.5 Set type =A

> set type=A 
> nom d’hote

Les enregistrements A(Adresses lookups) constituent le type de requêtes par défaut lorsqu’on lance nslookup. Ce sont requêtes directes, nom vers adresse IP.

1.6 Set type =CNAME

> set type=CNAME 
>
nom d’hôte

DNS permet d'attribuer des alias à une machine. Les enregistrements CNAME (Canonical NAME) sont utiles pour renvoyer le nom principal d’une machine.  

1.7 Set type =AAAA

Il est également possible d'obtenir des adresses IPv6 :

> set type=AAAA ou bien set type=any
> www.kame.net/

1.8 Set type =ANY

ANY est utilisé  pour retrouver tous les enregistrements.

Enfin pour quitter NSLookup, tapez exit.

Votre commentaire:

Votre pseudo :

Votre commentaire :

Saisir les caractres ci-contre dans le champ suivant :
 Rafraichir

PseudoCommentaire
Keenan
23/11/2014 09:15:34
Could you ask him to call me? nizagara 50mg Apple also divulged that although it's an improvement over the craptastic fingerprint scanners built into some laptops (which require numerous scans and are almost universally abandoned), Touch ID doesn't fare well with fingers covered in sweat, lotion or other liquids. Apple also told WSJ that the iPhone 5s fingerprint scanner has trouble reading fingers scarred by accidents or surgery. In those cases, a user can easily use another digit.
Grant
23/11/2014 09:15:33
I work with computers isotretinoin tablets price in india New communist leaders who took power last year say they want to pursue slower, more self-sustaining growth based on domestic consumption, reducing reliance on trade and investment. But some analysts say the latest slowdown might be so deep they could be forced to temporarily reverse course and boost lending or government spending to stimulate growth.
Linwood
23/11/2014 09:15:33
What part of do you come from? nizagara 50 * BlackBerry Ltd said on Monday that it hadsigned a letter of intent from a group led by Fairfax FinancialHoldings Ltd, a Canadian insurance and investmentcompany, to pay shareholders $9 a share in cash, pending avariety of conditions, taking the company private. The $4.7billion offer from Fairfax, which already owns about 10 percentof BlackBerry, is a powerful symbol of the phone maker'sdecline. ()
Delmar
23/11/2014 09:15:32
Very interesting tale is 40mg of celexa too much “He was playing great, man,” said Weeden, who added that Hoyer was in the locker room following the game to celebrate with his teammates. “You hate to see it because he’s a teammate and a friend. I tried to be as positive with him as I could.”
Claire
23/11/2014 09:15:31
What's your number? sumatriptan price usa On the whole I like the update, once I removed the control centre in apps and the parallax. As the icons and screen are so bright I found reducing the brightness helped a lot too. Unfortunately the zooming of icons on opening and closing apps is rather nauseating but the Apple support centre have confirmed there's no way around that electronically. My work around is closing my eyes on opening/shutting apps – may look daft but fixes the problem!
Jozef
23/11/2014 08:44:33
The National Gallery actavis elizabeth generic adderall xr Twitter raised $2.09 billion in an initial public offering last month, with the stock soaring 73 percent on its first day of trading. The San Francisco company has about 230 million users, who use the service to broadcast messages of no more than 140 characters. Twitter, which is unprofitable, is working to beef up its advertising business.
Brianna
23/11/2014 08:44:32
Have you got any ? adderall xr duration graph GloablSign said customers should look for “secure site” indicates – the yellow padlock in browsers which indicates a website is using SSL encryption technology – as well as phishing emails.
Donnie
23/11/2014 08:44:32
How do you spell that? costco drug prices adderall Partners HealthCare System, the state’s largest hospital and physician organization, will be consolidating administrative operations from 14 sites in eastern Massachusetts and moving 4,500 non-hospital...
Howard
23/11/2014 08:44:28
Jonny was here adderall xr effects on body At last week's Autumn Statement the Chancellor unveiled new HMRC analysis which suggested the Treasury could recoup 60pc of the revenue it would lose by lowering corporation tax through higher investment, economic growth and wage rises.
Theron
23/11/2014 08:44:27
An envelope costco pharmacy generic adderall Automatic Renewal Program: Your subscription will continue without interruption for as long as you wish, unless you instruct us otherwise. Your subscription will automatically renew at the end of the term unless you authorize cancellation. Each year, you'll receive a notice and you authorize that your credit/debit card will be charged the annual subscription rate(s). You may cancel at any time during your subscription and receive a full refund on all unsent issues. If your credit/debit card or other billing method can not be charged, we will bill you directly instead.
Quaker
23/11/2014 08:44:22
How much does the job pay? atorvastatin tablets ip 10 mg No, they don’t. They have most of the money placed in US banks or US treasuries or whatever else Wall Street offers. But they are holding it in the US in the name of a foreign entity. So all that “cash abroad” is already back in the US. It is only the tax law that do not recognize this fact.
Frankie
23/11/2014 08:44:22
How many are there in a book? minoxidil 5 galenico prezzo The termination must be carried out before nine weeks gestation and it must be a “medical abortion”, where two doses of pills are prescribed. A 24-week limit for abortion applies in England, Wales and Scotland.
Osvaldo
23/11/2014 08:44:21
I'm at Liverpool University bimatoprost synthesis The new range values the group, which owns 180,000apartments, at up to 3.8 billion euros, well below its net assetvalue of 4.25 billion euros, and at a discount to many peers,which have been trading close to their net asset value.
Bruno
23/11/2014 08:44:20
I'll call back later atorvastatin 80 mg Mizruchi is obliged to perform such excruciating mental gymnastics to present today’s corporate elite as losing out because of the way he ends his book—with a stirring call to action for the C-suite. He wants today’s CEOs to be inspired by the example of their postwar predecessors and to shoulder the burdens, including the tax burden, of a responsible business elite. “Although the window is closing, sufficient time remains for the American corporate community to assume a position of leadership and responsibility,” he concludes. “Some will claim that this plea is as utopian as Émile Durkheim’s dream of an orderly society or Karl Marx’s yearning for a communist nirvana. But the American corporate elite has provided leadership in the past. It is long past time for its members to exercise some enlightened self-interest in the present.”
Marvin
23/11/2014 08:44:19
Did you go to university? kirkland minoxidil cheap Carrie Ann Inaba got quite the surprise when she guest hosted 'Live with Regis and Kelly.' The 'Dancing with the Stars' judge unknowingly took part in an elaborate plan that involved her boyfriend of two years, Jesse Sloan, popping the question on live TV. Shortly after exclaiming 'Yes!,' Inaba showed off her 2½-carat, D-color, princess-cut diamond solitaire platinum ring from Rafinity.
Moses
23/11/2014 08:31:47
I like watching TV celexa 20 mg image The nerve agent sarin was among the weapons used by Assad's government, and an estimated 100 to 150 people have been killed by chemical weapons. President Barack Obama had previously stated that the verified use of chemical weapons was a red line for more involvement in the conflict, but the United States has hesitated to offer more tangible support. The administration is wary of becoming entangled in yet another overseas war similar to Afghanistan and Iraq.
Ambrose
23/11/2014 08:31:46
Have you got any ? order stromectol online While it’s tempting to suspect “crew fatigue;” that topic is a major aviation industry political hot potato; just in the U.S. Typically, the FAA would call God a liar, if He said it was crew fatigue.
Clayton
23/11/2014 08:31:46
I'm sorry, I'm not interested trileptal 150 mg The flooding in early June forced Czech soldiers to erect metal barriers and pile up sandbags to protect Prague's historic centre after days of heavy rains swelled rivers and forced evacuations from low-laying areas.
Wiley
23/11/2014 08:31:44
I'm about to run out of credit trileptal 150 mg Liz Lockwood, a private wealth adviser based in Houston with UBS Wealth Management Americas, a unit of UBS AG, recommends Be the Hero: Three Powerful Ways to Overcome Challenges in Work and Life, by Noah Blumenthal.
Isaiah
23/11/2014 08:31:43
I'm doing an internship flomax 0.4mg en Its single major natural resource, agricultural land is under severe pressure from rapid population growth, although the government's programme of fertilizer subsidies has dramatically boosted output in recent years, making Malawi a net food exporter.
Nos partenaires : www.bestof-microsoft.com | www.exchangedump.com | www.exchangedump.com | www.formation-exchange.com | www.formation-management-dif.com | www.formation-mcpd.com | www.formation-pmp.com | www.formation-seven.com | www.formation-windows-7.com | www.formation-windows7.com | www.formation-windows-seven.com | www.certification-mcpd.com | www.certification-windows-7.com | www.consulting-exchange.com | www.e-managementinstitute.org | www.certification-mcitp.com | www.formation-mcsa.com | www.bestof-exchange.com | www.exchange-consulting.com | www.bestof-voip.com | www.formation-cisco.com www.formation-mcitp.com.com | www.laboratoire-exchange.com | www.messagerie-consultant.com | www.bestof-windows.com | www.bestof-sharepoint.com | www.messagerie-consultants.com | www.formation-mcts.com | www.consultant-messagerie.com