What is nslookup? | Definition from TechTarget (2024)

What is nslookup?

Nslookup is the name of a program that lets users enter a host name and find out the corresponding IP address or domain name system (DNS) record. Users can also enter a command in nslookup to do a reverse DNS lookup and find the host name for a specified IP address.

Uses for nslookup

Network administrators use nslookup to troubleshoot server connections or for security reasons. For example, network pros might use nslookup to guard against phishing attacks, in which attackers alter domain names. An attacker might substitute the numeral 1 for a lowercase l to make an unfriendly site look friendly and familiar, e.g., joes1owerprices.com vs. joeslowerprices.com. Network admins use nslookup to troubleshoot such attacks.

DNS, or nslookup, also helps deter cache poisoning, in which attackers distribute data to caching resolvers that pose as authoritative origin servers.

Examples of nslookup commands

Popular nslookup commands include the following:

  • /name -- queries the current name server for the specified name.
  • /server name -- sets the current name server to the server the user specifies.
  • /root -- sets the root server as the current server.
  • /set type=x -- specifies the type of records to be displayed, such as A, CNAME, MX, NS, PTR or SOA. Specify ANY to display all records.
  • /set debug -- turns on debug mode, which displays detailed information about each query.
  • /set recurse -- tells the DNS name server to query other servers if it does not have the information.
  • /exit -- exits nslookup and returns the user to a command prompt.

Nslookup has two modes: interactive and noninteractive. To look up only a single piece of data, use noninteractive mode. To look up more than one piece of data, use interactive mode.

Nslookup sends a domain name query packet to a designated -- or defaulted -- DNS server. Based on the system used, the default could be the local DNS server at the service provider, some intermediate name server or the root server system for the entire DNS hierarchy.

DNS lookup with Linux

Some Unix-based operating systems include nslookup, but Linux and other versions of nslookup can locate other information associated with the host name or IP address, such as associated mail services. For example, the ping command is a more limited alternative to nslookup.

Public vs. private DNS

DNS records can be public or private. In the past, DNS helped users find things on the internet. Websites needed IP addresses and corresponding DNS records in public view for users to locate them.

However, organizations realized that they didn't want users outside the company to know internal processes. Organizations began using private DNS servers to store IP addresses for internal file servers, domain controllers, database servers, mail servers and application servers.

Editor's note: This article was reformatted to improve the reader experience.

This was last updated in April 2023

Continue Reading About nslookup

Related Terms

What is a URL (Uniform Resource Locator)?
A URL (Uniform Resource Locator) is a unique identifier used to locate a resource on the internet.Seecompletedefinition
What is a VPN?
A virtual private network (VPN) is a service that creates a safe, encrypted online connection.Seecompletedefinition
What is cyber attribution?
Cyber attribution is the process of tracking and identifying the perpetrator of a cyberattack or other cyber operation.Seecompletedefinition

Dig Deeper on Network security

What is nslookup? | Definition from TechTarget (2024)
Top Articles
Lost Ark: Chaos Dungeon Guide
Is This A Good Time To Buy (or Sell) A Classic Car? - Boyd Coddington Wheels
Burch Messier Funeral Home Bedford Va Obituaries
La Loft Brockton Photos
SCDOR | Sales Tax
Floresville'' - Craigslist Farm And Garden
De beste uitvaartdiensten die goede rituele diensten aanbieden voor de laatste rituelen
Hodgkins Il Ups Delay 2022
Wow Pickaxe Blade
A Whole Lotta Zozo
Njb Tinder
Spider Man Wiki Spider Man
Baroque Violin Shop Cincinnati Oh
How To Play BucketBall
Craigs Detroit
Cryoaudiovascularmalexia
Gasoline Prices At Sam's Club
Sprinter Tyrone's Unblocked Games
Netherlands Toys, Games & Hobbies | ExpatINFO Holland
Curaleaf Bell Leafly
Cooktopcove Com
Kate Spade Outlet Altoona
Byui Graduation Spring 2023
9546647572
The Salem News Obituaries
Accuweather Minneapolis Radar
Montefiore Email Outlook Login
Ft86 Club
Cancel Boost Mobile Autopay
7 On 7 Flag Football Misdirection Plays
Samantha Mathis Feet
Craigslist Houses For Rent In Pensacola Florida
Where To Cook In Gerudo Town
O'reilly's In Mathis Texas
10 Funniest Non Sequitur Comics, Ranked
Antiterrorism Level 1 Pretest Answers
Craigslist Furniture Brownsville Tx
Brandy Renee Thothub
Obtenir et afficher les itinéraires - Ordinateur
Methodist Laborworkx
Ag Carolina Login
My Time At Portia Valve
Portugal Anúncios Classificados OLX
Grand Park Baseball Tournaments
Billpay.adventhealth.com
B & B Recaps
Craiglist Okaloosa
American Iris Society Wiki
Star Citizen 2024 Review - Is it worth buying? - Gamers By Night
Latest Posts
Article information

Author: Van Hayes

Last Updated:

Views: 6001

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Van Hayes

Birthday: 1994-06-07

Address: 2004 Kling Rapid, New Destiny, MT 64658-2367

Phone: +512425013758

Job: National Farming Director

Hobby: Reading, Polo, Genealogy, amateur radio, Scouting, Stand-up comedy, Cryptography

Introduction: My name is Van Hayes, I am a thankful, friendly, smiling, calm, powerful, fine, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.