Basic Commands

1. Reverse DNS Lookup: You can perform a reverse DNS lookup by supplying the IP address as input to the nslookup command.

nslookup 142.250.194.206

2. Query different types of DNS records: nslookup allows you to specify the type of DNS record you want to retrieve. For example, you can query for MX (Mail Exchanger) records, TXT records, or any other supported DNS record type.

nslookup -type=mx google.com

nbtstat commnd in Linux

The nbstat command is specific to the Windows operating system and is used for troubleshooting NetBIOS name resolution.

NetBIOS stands for Network Basic Input/Output System, is a legacy networking protocol used primarily in Microsoft Windows operating systems and some other older systems for local area network (LAN) communication. It was originally developed by IBM in the 1980s and later adopted by Microsoft.

In Linux, the equivalent command for troubleshooting network issues and name resolution is nslookup, which stands for Name Server Lookup. It serves as a network administration tool used to query the Domain Name System (DNS) for obtaining domain name-to-IP address mappings or other specific DNS records, making it valuable for troubleshooting DNS-related issues.

Syntax for nslookup command

$ nslookup [option] [hosts]

Similar Reads

Installation

It’s important to clarify that the command “nbstat” does not exist on Linux systems. This command is specific to Windows systems. The purpose of this article is to offer a Linux-friendly alternative, which is ‘nslookup,’ as there is no direct equivalent to “nbstat” in the Linux environment....

Nslookup Options

Options Description -domain=[domain-name] Modify the default DNS name. -debug Allows the presentation of debug information. -port=[port-number] Indicate the port for queries. The default port number is 53. -timeout=[seconds] Define the server’s response time limit. -type=a Retrieve details regarding DNS A address records. -type=any Display all records currently accessible. -type=hinfo Access host-related hardware information. -type=mx Retrieve information about the Mail Exchange server. -type=ns Examine Name Server records. -type=ptr Inspect Pointer records, utilized in reverse DNS lookups. -type=soa Examine Start of Authority records....

Basic Commands

1. Reverse DNS Lookup: You can perform a reverse DNS lookup by supplying the IP address as input to the nslookup command....

Conclusion

The nslookup command serves as a robust utility for interacting with DNS servers, enabling users to retrieve details pertaining to both domain names and IP addresses. This tool is frequently employed by network administrators and system engineers to diagnose DNS-related problems, acquire insights into DNS setups, and assess the performance and responsiveness of DNS servers. Proficiency in comprehending the command’s syntax, available options, and practical examples empowers individuals to efficiently troubleshoot DNS dilemmas and access essential data regarding domains and IP addresses.For a more comprehensive understanding, please consult this article: https://www.geeksforgeeks.org/nslookup-command-in-linux-with-examples/...