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
Catégories :
  • Windows
  • Windows Server

Auteur(s) :
Saïda AZIRI (Membre depuis le 12/02/2007)
Société : 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 caractères ci-contre dans le champ suivant :
 Rafraichir

PseudoCommentaire
seo
03/07/2015 11:38:47
Hello Web Admin, I noticed that your On-Page SEO is is missing a few factors, for one you do not use all three H tags in your post, also I notice that you are not using bold or italics properly in your SEO optimization. On-Page SEO means more now than ever since the new Google update: Panda. No longer are backlinks and simply pinging or sending out a RSS feed the key to getting Google PageRank or Alexa Rankings, You now NEED On-Page SEO. So what is good On-Page SEO?First your keyword must appear in the title.Then it must appear in the URL.You have to optimize your keyword and make sure that it has a nice keyword density of 3-5% in your article with relevant LSI (Latent Semantic Indexing). Then you should spread all H1,H2,H3 tags in your article.Your Keyword should appear in your first paragraph and in the last sentence of the page. You should have relevant usage of Bold and italics of your keyword.There should be one internal link to a page on your blog and you should have one image with an alt tag that has your keyword....wait there's even more Now what if i told you there was a simple Wordpress plugin that does all the On-Page SEO, and automatically for you? That's right AUTOMATICALLY, just watch this 4minute video for more information at. Seo Plugin seo http://www.SEORankingLinks.com/
ladji
21/06/2015 16:44:58
c'est trés clair c'est mieux expliqué que dans mon cours merci bien
YpEhxsBF4hVT
20/06/2015 18:37:14
Login in your main domain admin aconuct and not to the local admin machine aconuct.IE if your domain is microsoft.locallogin as microsoftadministrstor and put your passsword in.
cZ00zUdT
20/06/2015 18:31:08
Amy,I couldn't get this to work with step 2. Create an IPv.6 resreve lookup zone for fe80::\64 That should be a forward slash Create an IPv.6 resreve lookup zone for fe80::/64 . Then it works like a charm!Thanks for posting this. It got me close enough to end that annoyance on my SBS 2008 servers.Ed
nrnSwwOl5
20/06/2015 18:25:57
Thanks a lot for giving evoneyre an extremely wonderful possiblity to discover important secrets from this site. It is always very beneficial and also packed with a good time for me personally and my office mates to visit your web site really thrice in one week to read the new secrets you have. And indeed, I am just always amazed for the exceptional solutions served by you. Selected 1 facts in this posting are unquestionably the most efficient we have ever had.
kuD5XJA1
16/06/2015 09:58:37
Someone I work with visits your blog frqleentuy and recommended it to me to read too. The writing style is great and the content is top-notch. Thanks for the insight you provide the readers!
YX2ddrcKu
16/06/2015 09:53:23
You can have unlimited users take adgnatave of this. The DNS settings control the entire domain. So , , , etc. will all funnel their request to the same DNS entry.Any UDP SIP requests at example.com will point to the sip.onsip.com server.Make sense?
hnyNslk6o9
14/06/2015 06:00:44
hey man I like it. I'm ready to write more posts and put your ideas to the test. After all, we always have shintomeg new to learn and being humble, I came here to learn. Bookmarked.- Josh
8m2QHLPKAaNC
13/06/2015 23:28:31
I turned off the fwleiarl, rebooted the PC, however mail still won't connect Microsoft Outlook 2007 to the SBS 2008. Same error: The action cannot be completed. The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action.
warzHzyfYVO
13/06/2015 22:51:33
I do love the manner in which you have psetenred this particular challenge and it does indeed present me personally a lot of fodder for consideration. Nevertheless, through just what I have personally seen, I simply hope when other commentary pile on that folks stay on issue and not start on a soap box of some other news of the day. All the same, thank you for this superb point and though I can not really go along with this in totality, I regard your point of view.
drpqDGkmh9t7
13/06/2015 17:14:10
Mine is an XP Client in a VMware environment. Exchange 2007 runs on Windows sevrer 2008R2 all Microsoft Exchange services are running but when I try creating an outlook profile on the XP Clent, the message: T action cannot be completed. The connection to microsoft exchange is unavilable. Your network adapter does not have default gateway comes up. help pls.
Cristobal
11/06/2015 10:58:22
A few months http://www.simocorp.com/simo-history himcolin price He reached the conclusion that he needs to write an application for temporary asylum, and this procedure has just been done, said Anatoly Kucherena, a lawyer with strong links with the Kremlin who helped Mr Snowden with the paperwork.
Nestor
11/06/2015 10:58:20
I live here http://www.intelligentlabor.com/aboutus/ what are the side effects of adcirca Two of them walked gingerly over to the corner and recreated the goals that brought the NHL season to a stunning conclusion. A few took swigs from Champagne bottles. Some posed for pictures. Others took them.
Waylon
11/06/2015 10:58:19
Pleased to meet you http://wtcgdl.com.mx/nosotros anyone tried stendra Sharon also runs Parrot shops in Astoria and Sunnyside. Like the original on Myrtle Ave., they stock all the above plus feta cheeses from around the world, dried fruits and nuts, tubs of pickles and oils, frozen dumplings and pastries. In summers, Sharon also brings in organic fresh produce — like baby Balkan sweet peppers — from a farm in Jersey.
Bennett
11/06/2015 10:58:17
I'm in my first year at university http://opportunitymusicproject.org/teaching-artist-mentor/jess/ eriacta dosage Google provides search and advertising services, which together aim to organize and monetize the world’s information. In addition to its dominant search engine, it offers a plethora of online tools and platforms including: Gmail, Maps, YouTube, and Google , the company’s extension into the social space. Most of its Web-based products are free, funded by Google’s highly integrated online advertising platforms AdWords and AdSense. Google promotes the idea that advertising should be highly targeted and relevant to users thus providing...
Willie
11/06/2015 10:58:15
I'm a trainee http://www.simocorp.com/simo-history www.himalaya himcolin Ultimately, the Prime Minister is the servant of Conservative MPs. But there are no party rules, there is no constitutional bind, that restricts his freedom of movement. It is very different for the Liberal Democrats. Their leader is bound by a triple lock – the consent, in turn, of the party’s MPs, of a special conference and of the party’s federal executive. Any one of these could block another coalition with Mr Cameron. And the disposition to do so is there, at least potentially. A recent poll of party members for the Liberal Democrat Voice website found that they prefer a coalition with Labour by the decisive margin of 55 per cent to 18 per cent.
Colby
11/06/2015 10:58:13
A book of First Class stamps http://www.simocorp.com/simo-history himcolin gel 30g tube The quality of this year's crop appears to be good, and prices could be strong because the harvest in Quebec is expected to be down after frost and disease, said David Yarborough, blueberry specialist for the University of Maine Cooperative Extension.
Jesse
11/06/2015 10:58:12
Incorrect PIN http://opportunitymusicproject.org/teaching-artist-mentor/jess/ cheap eriacta uk In addition to a stake in Credit Suisse, Koor owns 40percent of MA Industries, the world's biggest maker of genericcrop protection products, with China National Chemical Corp(ChemChina) owning 60 percent.
Branden
11/06/2015 10:58:10
What do you like doing in your spare time? http://www.intelligentlabor.com/aboutus/ adcirca 20 mg At $35, the Chromecast is certainly the least expensive way to get Internet content to your TV, but I still think there’s a market for the Roku and Apple TV and other Internet to TV streaming devices.  To begin with,  you need a smartphone, tablet or PC to use the Chromecast and, while most potential Chromecast customers already have at least one of those devices, there are those — like my mother-in-law- who don’t have one but just want to be able to watch TV.  For her, the Roku is a simple solution. It works with a remote control and, unlike most TV and cable boxes, the interface is drop dead simple. The other issue is content. Right now, Chromecast only has apps for YouTube and Netflix while Roku and Apple TV have many more viewing options.  Of course, Google will reach out to developers and expand the offerings and there is a way to play other video through a PC but that’s still a bit too complex a solution for watching TV.  Even tech savvy people sometimes want to kick back and watch TV without having to fuss with their phones, PCs or tablets.
Anna
11/06/2015 10:58:08
Canada>Canada http://www.intelligentlabor.com/aboutus/ adcirca and weight gain The Wall Street Journal reported on Thursday that the Obama administration was preparing for high-level meetings between Iranian and U.S. officials at the U.N. gathering next week and was open to a direct exchange between Obama and Rouhani.
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