β˜„οΈ
Certified Ethical Hacker
  • πŸ‘‰Certified Ethical Hacker Cheatsheet
  • 🐧General Settings
    • πŸ“¦APT Package Manager
    • πŸ€–Cron
    • 🦊Firefox Extensions
  • ✍️Research & Report
    • πŸ’ Obsidian
    • 🎒Notion
    • 🐼Pwndocs
  • πŸ”ŽInformation Gathering
    • πŸ“›NSLookup // Dig // Whois
    • πŸ“œNmap
    • πŸ–₯️DNS Enumeration
  • πŸ”¬Vulnerability Assessment
    • 🌐Web Assessment
      • Nikto
      • WPScan
    • πŸ•ΈοΈNetwork Assessment
      • OpenVAS
      • Nessus
  • βš”οΈExploitation
    • πŸ”΄Metasploit
    • 🐍MSFVenom
    • πŸ‘οΈSearchsploit
    • 🐚Revshells
    • 🐱Netcat
      • 😾Pwncat-CS
    • πŸ’ͺBrute Force
    • πŸ”’Wi-FI
  • ⚜️Post Exploitation
    • β›ΊPersistence
    • πŸ“File Transfer
      • Netcat
      • SMB
      • Python
      • Updog
      • Linpeas
    • πŸ•³οΈTunnelling
Powered by GitBook
On this page
  • nslookup
  • Resources
  • Usage
  • Querying
  • Types
  • Zone Transfer
  • Dig
  • Whois
  • Website
  • CLI
  1. Information Gathering

NSLookup // Dig // Whois

PreviousPwndocsNextNmap

Last updated 1 year ago

nslookup

Resources

Usage

nslookup [-option] [name | -] [server] 

Querying

# Usage
nslookup -query=OPTION SERVER

# Example
nslookup -query=hinfo google.com
nslookup -query=all google.com

Types

# Usage
nslookup -type=OPTION SERVER

# Name Server
nslookup -type=ns SERVER

# Options
    A: Specifies a computer's IP address.
    ANY: Specifies a computer's IP address.
    CNAME: Specifies a canonical name for an alias.
    GID Specifies a group identifier of a group name.
    HINFO: Specifies a computer's CPU and type of operating system.
    MB: Specifies a mailbox domain name.
    MG: Specifies a mail group member.
    MINFO: Specifies mailbox or mail list information.
    MR: Specifies the mail rename domain name.
    MX: Specifies the mail exchanger.
    NS: Specifies a DNS name server for the named zone.
    PTR: Specifies a computer name if the query is an IP address; otherwise, specifies the pointer to other information.
    SOA: Specifies the start-of-authority for a DNS zone.
    TXT: Specifies the text information.
    UID: Specifies the user identifier.
    UINFO: Specifies the user information.
    WKS: Describes a well-known service.

Zone Transfer

nslookup
> server URL
> set type=any
> ls -d URL
# Find Misconfig
> host -t axfr URL NAMESERVER

Dig

Whois

Website

CLI

# Get Domain Information
whois google.com
πŸ”Ž
πŸ“›
Nslookup Command in Linux with Examples - GeeksforGeeksGeeksforGeeks
nslookup(1) - Linux man page
Logo
nslookupMicrosoftLearn
Logo
dig Command in Linux with Examples - GeeksforGeeksGeeksforGeeks
Whois.com - Free Whois Lookup
Logo
Logo
Logo