-
-
Notifications
You must be signed in to change notification settings - Fork 3
Linux nslookup Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to nslookup on Linux, covering Arch Linux, CachyOS, and other distributions including DNS queries, domain lookups, and network troubleshooting.
Arch/CachyOS:
# Install bind-tools
sudo pacman -S bindDebian/Ubuntu:
sudo apt install dnsutilsFedora:
sudo dnf install bind-utilsBasic usage:
# Lookup domain
nslookup example.com
# Shows DNS informationIP lookup:
# Lookup IP
nslookup 8.8.8.8
# Reverse DNS lookupSpecific type:
# Query MX records
nslookup -type=MX example.com
# Query AAAA records
nslookup -type=AAAA example.comUse server:
# Use specific DNS server
nslookup example.com 8.8.8.8
# Second argument = DNS serverInteractive mode:
# Start interactive
nslookup
# Then type commands:
# > example.com
# > set type=MX
# > example.com
# > exitCommands:
# In nslookup:
# > set type=MX
# > example.com
# > server 8.8.8.8
# > example.comCheck installation:
# Check nslookup
which nslookup
# Install if missing
sudo pacman -S bindThis guide covered nslookup usage, DNS queries, and network troubleshooting for Arch Linux, CachyOS, and other distributions.
- dig Guide - Advanced DNS queries
- host Guide - DNS lookup
- DNS Servers - DNS server setup
-
nslookup Documentation:
man nslookup
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.