Interactive or one-shot DNS lookup.
Section: DNS Resolution
Resolve with nslookup
bash
bash
nslookup example.com 8.8.8.8Explanation
Interactive or one-shot DNS lookup.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing DNS Resolution
Trace DNS delegation
Follow delegation from root to authoritative answers.
Show systemd-resolved status
Inspect current DNS servers and search domains.