πŸ‘¨β€πŸ’»
Jawad's Notes
  • πŸ‘¨β€πŸ«INFOSEC
    • πŸ•ΈοΈWeb
      • Burp Suite: Setting Foxyproxy
      • XSS
      • Wappalyzer
      • Directory Traversal
      • LFI
        • PHP Wrappers
        • RFI
      • Reverse Shell
        • Command Injection Quick Tips
      • File Upload
      • WPScan
      • SQL Injection
        • Schemas
        • SQLmap
        • MSSQL
        • MySQL
        • PostgreSQL
    • πŸ”§Tools
      • Whois
      • DNSRecon
      • DNSenum
      • nslookup
      • Netcat
        • Powercat
      • Nmap
        • Nmap Scripting Engine
        • Test-NetConnection
        • Grep
      • Server Message Block (SMB)
      • SNMP
      • SMTP
      • ExifTool
      • Search Engine Hacking
      • Source Control Hacking
      • Nessus
      • Canarytokens
      • Qualys SSL Server Test
      • Security Headers
      • theHarvester
      • Shodan
      • Gobuster
        • Dirb
      • Searchsploit
      • Password Cracking
        • Hashcat
        • John The Ripper
        • Hydra
        • hashID
        • CPU vs GPU
    • 🐧Linux
      • Symbols
      • cat
      • curl
      • openvpn
      • tcpdump
      • Remote Desktop
      • SmbShare
      • Tmux
      • Convert Windows-style line endings (CRLF) to Unix-style (LF)
      • SSH
    • πŸ–₯️Macros in Office
    • 🍎Enhancing Your MacOS Terminal Experience
    • 🚩CTF
      • SQL Injection
        • WHERE clause allowing retrieval of hidden data
        • Allowing login bypass
        • UNION attack, determining the number of columns returned by the query
        • UNION attack, finding a column containing text
        • UNION attack, retrieving data from other tables
        • UNION attack, retrieving multiple values in a single column
        • Querying the database type and version on Oracle
Powered by GitBook
On this page
  1. INFOSEC
  2. Tools

nslookup

nslookup (Name Server Lookup) is a command-line tool for querying DNS servers to obtain domain-related information.

Purpose: nslookup is used to retrieve various DNS records, IP addresses, and domain-related details for troubleshooting and analysis.

Key Features:

  • Retrieve DNS Records

  • Obtain IP Addresses

  • Query Specific DNS Servers

  • Resolve Hostnames to IP Addresses

  • Troubleshoot DNS Issues

Examples:

  1. Basic DNS Query:

    nslookup example.com

    Performs a basic DNS query for the domain "example.com," displaying information such as the authoritative DNS server and its IP address.

  2. Reverse DNS Lookup:

    nslookup 8.8.8.8

    Conducts a reverse DNS lookup for the IP address 8.8.8.8, providing the corresponding hostname.

  3. Query Specific DNS Server:

    nslookup example.com dns.server.ip

    Directs the query to a specific DNS server (replace dns.server.ip with the actual IP address of the DNS server).

  4. Resolve IP Addresses to Hostnames:

    nslookup 192.168.1.1

    Resolves the IP address 192.168.1.1 to its corresponding hostname.

  5. MX Record Query for Email Servers:

    nslookup -q=mx example.com

    Retrieves the Mail Exchange (MX) records for the domain "example.com," which indicate email server information.

nslookup is a versatile tool for DNS queries and troubleshooting, commonly used in network diagnostics.

Resources:

PreviousDNSenumNextNetcat

Last updated 1 year ago

πŸ‘¨β€πŸ«
πŸ”§
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup