nslookup Command Generator
Generate nslookup commands to query name servers
Getting Started with nslookup
## What is nslookup?
`nslookup` queries DNS servers for domain information. Give it a name (and optionally a server and a record type) and it prints the matching records. It is older than `dig` but still widely available.
## How to Use
1. **Enter the Domain**: e.g. `example.com`. 2. **Pick a Type** (optional): `-type=MX`, `-type=NS`, `-type=TXT`... 3. **Set a Server** (optional): a second positional argument overrides your default resolver. 4. **Copy & Run**: paste the generated command into your terminal.
Flags & Patterns
``` nslookup example.com nslookup -type=MX example.com nslookup example.com 8.8.8.8 ```
### Common flags - `-type=<T>` — record type (A, AAAA, MX, NS, TXT, CNAME, SOA...) - `-timeout=<n>` — timeout in seconds - a trailing server argument — query this resolver instead of the default
### Tips - The server is just a second positional argument: `nslookup name server`. - For scripting, `dig +short` is usually cleaner than nslookup.
▶How do I look up MX (mail) records?
▶How do I query a specific DNS server?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee