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
Norbert
01/03/2015 11:51:22
Until August movements climbing what's in bimatoprost derisive odd Uh oh, I thought, as we queued for the Korean burritos. I didn’t like the look of this one. A woman stood in front of me, her face working with anger; and in her hand she had a full plastic tumbler of what looked like sangria — red wine with a slice of orange. It was just the sort of thing that a lefty lawyer might suddenly decide to chuck in the face of a hapless Tory politician; and so out of the corner of my eye I watched that sloshing drink as she waved it furiously under my nose, and I groped for ways to calm her down.
Jewell
01/03/2015 11:51:19
I'm on business coincidence bars xalatan eye drops mechanism of action spirit bellamy The update is available via the main Java website and has prompted follow-up action from other electronics firms. Apple has released an update to the version of Java that runs on its computers. This update points people towards the official version of Java from Oracle instead of that supplied by Apple.
Tilburg
01/03/2015 11:51:15
Is this a temporary or permanent position? spent Where To Buy Zantac operate Joseph Frolik with the Cuyahoga County Prosecutor's Office said officials decided to tear down the house because we didn't want some kind of gruesome, macabre shrine, if you will, that would get gawkers and curiosity seekers.
Danilo
01/03/2015 11:51:11
A book of First Class stamps stout latanoprost prescription assistance lateral The disappearance of the Vermillion High School juniors was one of the initial investigations of South Dakota's cold case unit. The unit was formed in June 2004 to focus on unsolved suspicious deaths and disappearances; there's no time limit on filing criminal charges in homicide cases.
Carmine
01/03/2015 11:51:06
Your cash is being counted interest cricket order cheap bimatoprost wand It shows a lot of promise (but) I don't think it's even close to being ready for routine use, said Dr. Mark Sauer of the Columbia University Medical Center in New York. Dr. Amber Cooper of Washington University in St. Louis called the technique very much an experimental method.
Friend35
01/03/2015 11:51:04
We work together safety bimatoprost and timolol maleate eye drops massive It seems we just cannot admit that this whole thing was at least as great a failure as Vietnam. We simply cannot do nation building when there isn’t some internal structure to build on. Germany, Japan, and Korea all had some social structure of government to build on. Even Iraqi had some semblance of government. Bush,et al,were simply too stupid to build on it.
Tristan
01/03/2015 11:51:02
Not available at the moment examine where can i buy latanoprost simplicity chapters Falkowski, now president of Drug Abuse Dialogues, an educational organization on drug and alcohol abuse in Minnesota, has heard stories of desperate addicts trying to distill fruit pilfered from the cafeteria into alcohol. At a treatment center where Falkowski worked in the 1970s, workers found drug syringes hidden in a clothes dryer.
Irea
01/03/2015 11:51:00
How much is a First Class stamp? tells hurricane bimatoprost online purchase harsh He also says he's spending more time with his son from a previous relationship, Reece, who turns 3 in December. He's working on his art and music portfolios in hopes of pursing graduate school once he completes the 15 hours needed toward his undergrad art degree next semester.
Shaun
01/03/2015 11:50:57
I stay at home and look after the children amuse lately What Is Levonorgestrel tangerine filling “Cloud 9” was the simple tweet from a proud Troy. Hodgson was still enthusing yesterday. “I’m delighted for the player. It can’t be easy for him, can it? 80,000 people, a game we had to win, but he played like a veteran and scored a wonder goal.”
Vance
01/03/2015 11:50:55
I'm afraid that number's ex-directory misfortune consequence Purchase Ranitidine Online astonishing Because the contamination case was never adequatelyaddressed by Chinese authorities, at least some of the badactors responsible for the adulteration presumably are stilloperating in the Chinese heparin business, and there is littledeterrence against, but high economic gain for, newheparin-contamination schemes, the lawmakers' letter said.
Leonardo
01/03/2015 09:36:53
I'm a housewife Cozaar 15 Mg The economy began to stabilise. Then, thanks to an export boom during the Korean war, the Tokyo Olympics, and rapid economic reform, Japan enjoyed a period of super high growth which averaged 9.1 percent in 1955-1973. Its GDP per capita grew at an annual compound rate of 2.7 percent in 1886-1940 and at 4.6 percent in 1948-2005.
Jewell
01/03/2015 09:36:51
In a meeting Buy Cheap Cozaar TOKYO, July 9 (Reuters) - Asian shares gained on Tuesday,taking heart from a rally on Wall Street spurred by strong U.S.job data last week, while the U.S. dollar held near a three-yearhigh against a basket of currencies.
Logan
01/03/2015 09:36:49
Whereabouts are you from? best price for bimatoprost The request to end the controversial trial followed the testimony of the medical examiner who conducted the autopsy on Trayvon Martin's body and the teens mother and brother who said they could hear him screaming for help on 911 calls made before he died.
Norris
01/03/2015 09:36:46
I'm not working at the moment order wellbutrin xl without a prescription You’d be tempted to say all of that tinkering got in his way, except for the fact that Wheeler came out firing, throwing an impressive 1-2-3 first inning that included strikeouts with a 96 mph fastball and a groundout with a sharp-breaking curveball.
Rafael
01/03/2015 09:36:45
Do you need a work permit? do you need a prescription for careprost Wang Linjia (right) and Ye Mengyuan on a mobile phone, at Jiangshan Middle School in Jiangshan, east China's Zhejiang Province.  The two girls died in the San Francisco plane crash on Saturday.
Brain
01/03/2015 09:36:42
Could you tell me the number for ? Generic Cozaar By repealing DADT, the country and the military have taken a significant step toward equality for all who want to serve their country in uniform. But there are other discriminatory policies in the military that the repeal of DADT does not change, including the medical regulatory ban in place for aspiring or current service members who identify as transgender, it states.
Marissa
01/03/2015 09:36:41
Other amount careprost bei ebay In Iraq, the inspectors could not validate the allegations of the presence of the so-called Weapons of Mass Destruction (WMD), but that hardly abated the claims of the Bush administration which used it invade Iraq.
Jesse
01/03/2015 09:36:39
I've only just arrived cheap wellbutrin sr Make a few changes to your party outfit, and you'll beat the temptation to overindulge. At a cocktail party, carry a clutch instead of a purse. With a cocktail in one hand and your handbag in the other, you won't be able to reach for too many hors d'oeuvres.
Chung
01/03/2015 09:36:36
I'm on a course at the moment buy cheap minoxidil 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.
Raymond
01/03/2015 09:36:34
Canada>Canada albuterol and ipratropium Plenty to shock yesterday, but the most rare of all was that the Home Secretary came to the despatch box to announce – hear hear hear! – that Abu Qatada had been deported, writes QUENTIN LETTS.
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