🔗
Networking concepts
  • Introduction
  • DNS
    • Introduction
    • DNS query
  • SSH
    • Introduction
    • Basics
    • SSH tunneling
      • Direct SSH tunnel
      • Reverse SSH tunnel
      • Dynamic SSH tunnel
    • SSH public key authentication
    • Port forwarding with virtual interface
    • sshd
    • scp/sftp
  • 🔫Networking tools
    • configuration & information
      • ip
      • netstat/netsh
      • ifconfig/ipconfig/iwconfig
      • arp
      • route
      • ps
      • ss
      • lsof
      • pgrep
      • nmcli
      • Information about services/processes & PID
    • monitoring & troubleshooting
      • ping
      • tracert/traceroute
      • mtr
      • iperf3
    • domain information
      • dig/nslookup
      • whois
      • host
    • capture & analysis
      • tcpdump
      • ngrep
      • wireshark
    • firewall & security
      • iptables
      • nft
    • services
      • dnsmasq
      • hostapd
      • RDP/VNC
      • ngrok
      • networking.service
      • NetworkManager.service
      • nginx
      • apache
      • nfs
    • miscellaneous
      • cURL
      • wget
      • netwox
      • netcat
      • openssl
      • socat
      • ftp
      • smbclient
    • proxy & tunneling
      • proxychains
    • Programming/scripting
      • Python
      • C
  • 🤩Interesting concepts
    • Simple tips & tricks
    • Network hole punching
    • SSH Over HTTPS
  • Network ports & services cheat sheet
    • 20/21/tcp ~ ftp
    • 22/tcp ~ ssh
    • 23/tcp ~ telnet
    • ...
  • For-fun projects
    • Raspberry pi + Windows machine experiments
Powered by GitBook
On this page
  • dig
  • nslookup
  1. Networking tools
  2. domain information

dig/nslookup

Previousdomain informationNextwhois

Last updated 6 months ago

dig

Basic command:

$ dig @<nameserver> <DOMAIN> [query_type]

# eg.
$ dig @8.8.8.8 google.com A #(a) - equivalent to nslookup
$ dig @8.8.8.8 google.com AAAA #(b) - equivalent to nslookup
$ dig @8.8.8.8 google.com NS #(c) - equivalent to nslookup
$ dig @8.8.8.8 google.com MX #(d) - equivalent to nslookup

Other useful options:

$ dig ... +[no]<options>

# eg. 
$ dig ... +short

nslookup

Basic command:

$ nslookup -type=<query_type> <DOMAIN> [nameserver]

# eg. 
$ nslookup -type=A google.com 8.8.8.8 #(a)
$ nslookup -type=AAAA google.com 8.8.8.8 #(b)
$ nslookup -type=NS google.com 8.8.8.8 #(c)
$ nslookup -type=MX google.com 8.8.8.8 #(d)
🔫
dig(1): DNS lookup utility - Linux man page
Logo
nslookup(1) - Linux man page
Logo