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
kidrock
01/11/2014 02:30:42
What's the last date I can post this to to arrive in time for Christmas? scientific writing services company The monthly job numbers are not just jobs added, it is net jobs gained. So, for example, if last month we gained 150 k jobs, it could mean 1.5 million people lost a job, but 1.65 million people got a job.
Jada
01/11/2014 02:30:40
How do you know each other? apa style case study multiple sclerosis The emerald ash borer has been detected in another Connecticut county – Fairfield – in the town of Sherman, on July 19, the Connecticut Agricultural Experiment Station reported July 26. This invasive insect has now been found in two Connecticut counties and 12 towns.
Ricky
01/11/2014 02:30:40
I'm interested in business writing service Interpol, meanwhile, issued a global security alert on Saturday in connection with suspected al-Qaida involvement in several recent prison escapes including those in Iraq, Libya and Pakistan. The alert calls on its 190 member countries to help determine whether these events are co-ordinated or linked.
Sebastian
01/11/2014 02:30:39
Please call back later custom speech writing Even though the Perseids radiate from Perseus, they can be seen all over the sky, and it is not necessary to look at Perseus to see meteors. Perseus is well above the horizon by 1 a.m. From then until morning twilight, the meteors should get better and better.
Owen
01/11/2014 02:30:39
Photography best place to buy book reports online The deal, Schneider's biggest since its $6.1 billionpurchase of American Power Conversion Corp in 2006, will combineInvensys' automation software that helps run power stations, oilrefineries and chemical plants with Schneider's automationproducts for the car, aerospace, food and beverage industries.
Tyler
01/11/2014 02:04:56
Have you got any ? http://www.cafsowrag4development.org/do-my-essay-for-1000/ write my essay for me australia The Justice Department's antitrust division, which ispreparing to litigate to stop American Airlines frommerging with US Airways, would keep working on mergerinvestigations, but stop any activities that could be delayed.
Nicole
01/11/2014 02:04:54
When can you start? http://www.cafsowrag4development.org/writing-resumes-for-high-school-students/ who is the most reiable custom essay That happiness may be brief because when officials learned that Alireza had been found alive they put him under armed guard in hospital, ready for a second execution. A judge in the administrative court told state media: “The man has been sentenced to death by the Revolutionary Court and his death sentence will be carried out once the medical staff confirms that his health condition is good enough”.
Molly
01/11/2014 02:04:53
We'll need to take up references http://www.warwickhughes.com/blog/?p=homework-tips paper to write on He said: If you are talking about nodding off for five minutes then they are not really getting established sleep but if you are talking about someone who is going to sleep for maybe half an hour then you are talking about somebody who has probably gone into established sleep and if they go into the deeper stage of sleep they will wake up feeling groggy.
Colton
01/11/2014 02:04:52
How many weeks' holiday a year are there? http://www.ohword.com/buy-litrature-review/ best essay writing service uk Now I have a pretty wild imagination, especially after a few pints and an injudicious late-night cheese sandwich, but even in my most unhinged moments I never thought VLPs would get this big and this powerful this quickly.
Evan
01/11/2014 02:04:51
What do you want to do when you've finished? http://www.cafsowrag4development.org/do-my-essay-for-1000/ where can i pay someone to do my homework It would also create a legislative framework and regulatorystructure for so-called covered bonds, which would be backed bymortgages but which would remain on the issuer's balance sheet,unlike the mortgage-backed securities backed by Fannie Mae andFreddie Mac.
Jennifer
01/11/2014 01:50:43
Do you need a work permit? pay people to write papers Hatch's legislation would also put employees at small or start-up companies into annuities for retirement, as well as change the federal oversight of 401(k) retirement plans offered by most corporations and of Individual Retirement Accounts.
Richard
01/11/2014 01:50:41
An accountancy practice custom essays for research paper The recessions that we have endured in the past few years have led to record numbers of companies failing, record numbers of layoffs and historic levels of shareholder losses. Now that the markets are no longer pouring blood, it seems reasonable for shareholders to take stock, keep their options open (cash=options), and play wait and see.
Brayden
01/11/2014 01:50:41
Best Site good looking money essay spm This is not to be sniffed at. For the first time it sets a common set of rules (albeit with wiggle room built in) to deal with bank collapses but, as we’ve explained ad nauseam in recent weeks, it is only one building block en route to a comprehensive banking union which was promised last year and would amount to the last vital plank in the defences being built around the currency bloc to banish future existential threats.
Jack
01/11/2014 01:50:40
We'll need to take up references writing an academic essay In one letter, the Defence Minister A.K. Antony, a powerfulmember of the cabinet, told the industry ministry a plan toallow foreign weapons manufacturers to invest up to 49 percentin defence joint ventures represented a danger to India'sdefence interests.
Kylie
01/11/2014 01:50:39
One moment, please argumentative essay for sale Wartsila has been trying to develop its business with newindustrial technologies such as scrubbers that help to cut thesulphur oxide in ship exhausts, with an eye on what Rosengrensaid was likely to be a tightening of emission regulations.
Maria
01/11/2014 01:48:10
A staff restaurant loans without cosigners U.S. industry has pushed for an expanded ITA pact covering an additional $800 billion in trade, which the Information Technology and Innovation Foundation has estimated would boost U.S. exports by about $2.8 billion annually. personal loans bad credit instant approval Obama is pushing to end the federal budget cuts that kicked in this year so they don't extend into the next fiscal year. That could create a showdown with congressional Republicans in September, as the end of the current fiscal year approaches. Some Republicans also want more deficit reduction as a price for raising the debt ceiling, a bargain Obama says he will not make.
rikky
01/11/2014 01:48:10
I'd like to open an account quick cash oregon The IMF said Greek debt would peak at around 176% of GDP in 2013, and decline to 124% in 2020, after additional contingent relief measures of about 4% of GDP from Greece's European partners to be determined in 2014/15. payday loan desoto tx By Christmas you will have the finest sloe gin you’ve ever tasted, a delicious, dark liqueur that is ideal for supping neat after dinner or drunk long with plenty of ice and tonic. What’s more you’ll have a story to tell.
Adam
01/11/2014 01:48:09
A pension scheme ways to make cash Gas and dust obscure this region from visible-light observations, making it somewhat of an enigma. The magnetic field in the center of the region is an important component to understanding this phenomenon, as it regulates the flow of material into the black hole. loans that can be paid back in installments “I don’t think anything will happen by happenstance on a relationship on an issue that is this important,” Rhodes said.   No American president has met one-on-one with an Iranian head of state since 1977.”
Isaiah
01/11/2014 01:48:07
We're at university together payday loan direct lenders online 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. payday loans in houston tx off airline Investors are watching for changes in earnings or economicnews that could derail the market's rally. Stocks have climbedthis year, except for a late-May selloff triggered by FederalReserve Chairman Ben Bernanke's comments, which raised theprospect of trimming the Fed's $85 billion in monthly stimulus.The S&P 500 has gained 18 percent since Dec. 31.
Ariana
01/11/2014 01:48:07
Will I have to work shifts? bad credit installment loans in pennsylvania While the defense’s front seven has come together nicely, the secondary is still a work in progress because of a few injuries. Safety Devin McCourty shed the non-contact jersey this week and is on pace for the regular-season opener, but it’s unclear if he’ll play tonight. Cornerbacks Alfonzo Dennard and Ras-I Dowling have also dealt with injuries since the start of camp, and they’ve made progress this week. But both need to get on the field. Logan Ryan is challenging Dennard for his starting job, and Dowling needs to prove he belongs on the roster. best place to get loans with bad credit Xi has vowed to fight both tigers and flies - in other words people at every level of the party - as he combats graft so serious that he has warned it threatens the Communist Party's very survival.
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