Nslookup Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora And Raspbian
Maintainer: Debian DNS Team
Email: [email protected] .
Website: https://www.isc.org/downloads/bind/
Section: net
Install nslookup
-
Debian
apt-get install dnsutilsClick to copy -
Ubuntu
apt-get install dnsutilsClick to copy -
Alpine OS
apk add bind-toolsClick to copy -
Arch Linux
pacman -S bind-toolsClick to copy -
Kali Linux
apt-get install dnsutilsClick to copy -
Fedora
dnf install bind-utilsClick to copy -
Raspbian
apt-get install dnsutilsClick to copy
Query name server(s) for various domain records.
How to use nslookup?
Below are few example commands for nslookup that you can use in the terminal.
Query your system's default name server for an IP address (A record) of the domain:nslookup example.comClick to copyQuery a given name server for a NS record of the domain:nslookup -type=NS example.com 8.8.8.8Click to copyQuery for a reverse lookup (PTR record) of an IP address:nslookup -type=PTR 54.240.162.118Click to copyQuery for ANY available records using TCP protocol:nslookup -vc -type=ANY example.com Click to copyQuery a given name server for the whole zone file (zone transfer) of the domain using TCP protocol:nslookup -vc -type=AXFR example.com name_serverClick to copyQuery for a mail server (MX record) of the domain, showing details of the transaction:nslookup -type=MX -debug example.comClick to copyQuery a given name server on a specific port number for a TXT record of the domain:nslookup -port=port_number -type=TXT example.com name_serverClick to copy
To install the latest version of nslookup in your favorite operating system just copy the nslookup installation command from above and paste it into terminal. It will download and install the latest version of nslookup 2026 package in your OS.




