Forrest logo
back to the nslookup tool

nslookup:tldr:27d5e

nslookup: Query a given name server for a NS record of the domain.
$ nslookup -type=NS ${example-com} ${8-8-8-8}
try on your machine

The command "nslookup" is a tool used to query DNS (Domain Name System) to obtain information about domain names. This command allows you to specify the type of DNS record to look up for a specific domain.

In this particular command:

  • "nslookup" is the command itself.
  • "-type=NS" is an option that specifies the type of DNS record to be queried, in this case, NS (Name Server) records will be looked up for the domain.
  • "${example-com}" is the parameter that represents the domain name for which you want to look up NS records. The domain name in this example is "example.com", but when you use the command, you would replace "${example-com}" with the desired domain name you want to query.
  • "${8-8-8-8}" is the parameter that represents the DNS server to use for the query. In this case, "8.8.8.8" is used, which is a public DNS server maintained by Google. Similarly, you would replace "${8-8-8-8}" with the IP address of your preferred DNS server when using the command.

So, this command performs an NS lookup for a specific domain name using a specified DNS server.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nslookup tool