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
Sean
25/10/2014 02:30:53
I really like swimming http://www.ohword.com/woodlands-junior-homework-help/ literature review order However, many felt that more important for the direction ofequity markets was world central banks' continued support of theglobal economy with injections of liquidity, along with proof ofimproving company profits.
Joshua
25/10/2014 02:30:51
How much will it cost to send this letter to ? http://www.cornwallfoodanddrink.co.uk/help-my-homework/ help creating a thesis statement As a manager of a smaller fund with less than $100 million under management, O'Brien is buying into smaller, regional financial companies and consumer-staple producers. His fund has not kept up with the booming stock market this year, but it's the first time it has trailed the Standard & Poor's 500 index since 2007. So far this year, the fund has returned 13.91 percent through June 19, versus 15.37 percent for the S&P. Over the past five years, Prospector's 8.53 percent annualized gain easily tops the 2.24 annualized return for the S&P. Morningstar gives the fund a four-star rating and a low-risk rating.
Emma
25/10/2014 02:30:50
Sorry, I'm busy at the moment http://www.cornwallfoodanddrink.co.uk/best-essay-writing-sites/ free essay writer online For the study, scientists examined data on 43,599 men enrolled in the Health Professionals Follow-Up Study (HPFS) from 1988 to 2008; 73,820 women in the Nurses’ Health Study (NHS) from 1992 to 2008, and 91,005 women in the Nurses’ Health Study II (NHSII) from 1993 to 2007.
Magic
25/10/2014 02:30:48
I'm self-employed http://www.cornwallfoodanddrink.co.uk/writing-essay-introductions/ professional essay help It was just his recurrent picture that was in my head that never changed, she said. I was getting a snapshot, but I couldn't understand why he wasn't moving. He had his eyes closed, but I just thought he was sleeping.
Avery
25/10/2014 02:30:47
this is be cool 8) http://www.cornwallfoodanddrink.co.uk/writing-essay-introductions/ hrm assignment help He said: “The complexities and cost of this can discourage many businesses, even relatively large independent firms, from bidding. This takes away from local firms and money from the communities in which they are based.
Mackenzie
25/10/2014 02:29:17
Do you know the number for ? buy lisinopril Raggi and three partners -- one them, James Blair, the fan who ran on the floor -- launched Come Home LeBron, a campaign to show James that northeast Ohio doesn't hate him. The group plans to hand out T-shirts outside Quicken Loans Arena on Wednesday night. A Come Home LeBron billboard went up near St. Vincent-St. Mary High School, James' beloved alma mater, on Monday.
Isabel
25/10/2014 02:29:15
I'm sorry, he's buy zenegra @awsresident @Openminded1 Moron I am 63 years old and a Vietnam veteran, I have traveled all over this country and many places around the world evolving as you put it. But I am not stupid enough to go to a communist country that hates Americans.. If you want to be stupid like are old Korean vet, you help get him out of N Korea and go evolve with him. Dummy
pitfighter
25/10/2014 02:29:12
I'd like to open a business account zerit 40 mg Knuckle puck guy â€¦ or what he’s formally known as in the movie, Russ Tyler. I’ll admit I too had a hard time figuring it out, forcing me to Google “Mighty Ducks knuckle puck guy” to find out. 
Brooklyn
25/10/2014 02:29:11
Insufficient funds overnight delivery zanaflex She heads out to check on a team in a suburb of the city. Eventually we spot them standing near a gaudy mansion the locals have dubbed the White House. Next door lies a set of interconnected mud hovels bordering a sewage ditch that bubbles slowly, its surface covered in ropes of black algae and crowded with flies. Three ducks float in the ditch, snuffling at the scum. Further down, shrieking children scramble barefoot through the mud and splash in the water. It’s easy to see how the fecal-oral route works here.
Gabrielle
25/10/2014 02:29:09
I read a lot zenegra uk “Maybe in the near term this maybe enhances Kim Jong Un’s image or the power around him,” Gause said. “But this still, ultimately, can go really wrong. You’ve removed from the center of things a person who knew how the system worked and who was apparently a good consensus-builder.”
Jacob
25/10/2014 02:11:10
Do you need a work permit? best online content writing sites She's healthy and would be well served simply by picking her employer's lowest cost option. But the ACA allows her to stay under my health policy until she's 26, and if the marginal cost of keeping her on my plan is cheaper than what she'd pay to be insured at work, she may choose to stay on my plan for a few years (and pocket the savings after reimbursing dad for what it costs to retain her on my policy).
Victoria
25/10/2014 02:11:10
I'd like to order some foreign currency is there someone can help me to write an essay RockMelt's Web browser, which was launched in 2010,integrated social networking features directly within thebrowser, allowing users to send Facebook messages and browseTwitter postings. The browser never gained enough of a followingto challenge the larger Web browsers such as Google Inc's Chrome and Microsoft Corp's Internet Explorer.
Sophie
25/10/2014 02:11:09
What line of work are you in? writing my essay for me Jarad said he had been living on a hamburger a day andwashing in toilets while his family tried to get him a newpassport so he could join them in Jordan. He had been offered aflight to Latakia, Syria, but said he feared for his life there,telling the paper: I wish I could go back to Dubai jail. (Reporting by Sami Aboudi, Editing by William Maclean and MarkTrevelyan)
Olivia
25/10/2014 02:11:08
I never went to university research papers writing service Our initial reaction is that the Turkish shareholder cansecure the funding within the stated date, meaning that they canregain control of Turkcell, said analyst Alper Ozdemir atbrokerage Oyak Securities.
Eli
25/10/2014 02:11:07
Do you play any instruments? nursing profession or calling According to court papers, Lady Gaga, listed in the litigation under her birth name — Stefani Germanotta — and O'Neill frequently slept in the same bed because O'Neill never had her own hotel room while on tour and was required to address Lady Gaga's needs throughout the night.
Kylie
25/10/2014 01:40:43
Enter your PIN spec construction loans “Many of the follow-up appointments currently provided by consultants could be done in a GP practice, resulting in less inconvenience for patients in terms of having to travel to hospital and also freeing up the consultant’s time to see patients with a more specialist need. i need a personal cash loan but i have no credit I mean, you build something from scratch, we had justsigned Janet Jackson, we had just signed the Rolling Stones whenwe sold it, and I remember running down Ladbroke Grove, tearsstreaming down my face with the check for a billion dollars, hesaid.
Gabrielle
25/10/2014 01:40:42
I wanted to live abroad internet cash loans Both sides agree that the plane that crashed was within the runway's design capacity. But Fairweather said he worried about larger jets, moving with greater momentum and loaded with more fuel, crashing into homes on takeoff or landing. instant cash today payday loans It must be admitted that this eye for detail often failed him when he came to construct plots. When Howard Hawks, filming The Big Sleep, asked Chandler to clarify who was responsible for the death of the chauffeur Owen Taylor, the author couldn’t tell him.
Brian
25/10/2014 01:40:41
I've been made redundant sunpower financing In an embarrassment for China's fledgling cruise industry, most passengers had to be flown home after they were strandedfor three days in Jeju island in South Korea. The cruise linerwas released only after a bond was posted. money loans montel williams In a lawsuit relating to Patriot's bankruptcy, Patriot andPeabody are fighting over the responsibility to fund benefitsfor a group of about 3,100 retirees that Peabody agreed tocontinue covering after the October 2007 spinoff.
Andrew
25/10/2014 01:40:35
How much is a First Class stamp? instant online loans for blacklisted The accounts given to investigators by the pilots, asrelayed by Hersman, confirmed information from the plane'sflight data recorder that showed the plane was traveling 25percent below its target airspeed as it came in for landing. online basic bank account We hope that the Santa Ana issue, which is in thejudiciary, can be resolved as soon as possible so the silverdeposits can be exploited, Mines Minister Jorge Merino toldreporters. The government is very willing to facilitateuntangling the project.
Jesse
25/10/2014 01:40:33
How do you spell that? fast free money But he added: I think it is right in going to the Commonwealth conference we should not hold back in being very clear about those aspects of the human rights record in Sri Lanka that we are not happy with. online payday loans savings account only “To my teammates, past and present, I appreciate you guys. The Lord has blessed me with a big family and all these men have been part of my family. I thank you – every one if you guys individually – for what you have meant to me. I love you guys. You are special to me and my family.
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