Enter a domain to check its nameservers:
Instantly check the nameservers of any domain.
Enter a domain to check its nameservers:
The NS Lookup tool (short for Name Server Lookup) is a powerful and widely used command-line utility for querying DNS (Domain Name System) to obtain information about a host or domain. It is an essential tool for network administrators, developers, and anyone troubleshooting DNS-related issues. Essentially, NS Lookup translates a human-readable domain name (like google.com
) into its machine-readable IP address (like 142.250.191.46
), and vice versa. It can also provide details about other DNS records, such as mail servers (MX records), name servers (NS records), and text records (TXT records).
NS Lookup operates by sending a DNS query to a specified DNS server. By default, it uses the DNS server configured in your system's network settings, but you can also direct it to query a different DNS server. When you type a command like nslookup example.com
, the tool performs a lookup and returns the requested information. The process typically involves a series of queries and responses between the client and the DNS server, resolving the domain name in a process known as DNS resolution. The tool can be used in two modes: interactive mode, where you can perform multiple lookups without re-running the command, and non-interactive mode, for a single, quick query.
NS Lookup offers a variety of commands and options to get specific DNS information. Some of the most common are:
nslookup [domain]
: This is the basic command to find the IP address of a domain.nslookup -type=[record_type] [domain]
: This command is used to specify the type of DNS record you want to look up.
-type=A
: Looks up the address record, which maps a domain to an IP address.-type=AAAA
: Looks up the IPv6 address record.-type=MX
: Looks up the mail exchange record, identifying the mail servers for a domain.-type=NS
: Looks up the name server record, showing which servers are authoritative for the domain.-type=TXT
: Looks up the text record, often used for verification and security purposes (like SPF or DKIM records).-type=CNAME
: Looks up the canonical name record, which is an alias for another domain.nslookup [IP_address]
: This command performs a reverse DNS lookup, translating an IP address back to its domain name.nslookup -server=[DNS_server_IP] [domain]
: This allows you to query a specific DNS server instead of the default one, which is useful for debugging and testing.NS Lookup is an invaluable tool for a range of tasks, including:
The ability to perform various types of queries and specify different DNS servers makes NS Lookup a flexible and powerful utility for managing and understanding DNS information. It is a fundamental component of any network professional's toolset for maintaining network health and connectivity.