dig Command Generator
Generate dig commands to look up DNS records
Getting Started with dig
## What is dig?
`dig` (domain information groper) queries DNS servers and prints the full answer, including the TTL and the resolving name servers. To target a specific resolver, prefix it with `@`.
## How to Use
1. **Enter the Domain**: e.g. `example.com`. 2. **Pick a Type** (optional): `A`, `AAAA`, `MX`, `NS`, `TXT`, `CNAME`... 3. **Set a Server** (optional): e.g. `8.8.8.8` → queries Google's resolver (`@8.8.8.8`). 4. **Copy & Run**: paste the generated command into your terminal.
Flags & Patterns
``` dig example.com MX dig @8.8.8.8 example.com dig example.com +short dig -x 8.8.8.8 ```
### Common flags - `@server` — query this DNS server - `+short` — print only the terse answer - `-x` — reverse lookup (give an IP, get a name)
### Tips - The record type is just a positional word: `dig example.com MX`. - `+short` is perfect for scripts that only need the value. - `-x` builds the reverse query for you from a plain IP.
▶How do I query a specific DNS server?
▶How do I get just the IP address?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee