The short answer
- DNS turns a name, like example.com, into a number address.
nslookup example.comasks your DNS server for that address.nslookup example.com 1.1.1.1asks a different server, so you can compare.- A correct answer means the name works. It doesn't prove the website works.
1. When to use it
Use nslookup when:
- one website won't open but others do;
- a ping to an address works, but a ping to a name fails;
- a staff system opens on one network but not another;
- someone has just changed a website or email set-up.
Don't start here if the PC has no address. Check that first with ipconfig.
2. Run your first lookup
- Open Command Prompt.
- Type
nslookup example.com. - Read the top part: that's the server you asked.
- Read the bottom part: that's the answer.
nslookup example.com 1.1.1.1 on 2 December 2026)Server: one.one.one.oneAddress: 1.1.1.1
Non-authoritative answer:
Name: example.com
Addresses: 104.20.23.154 and 172.66.147.243 (two longer IPv6 addresses left out)
One name had several addresses. That's normal, and it's why two people can see different answers. You may see "Non-authoritative answer". That's normal. It means the server passed on an answer it got from elsewhere.
3. Compare two servers
Run the same name twice:
nslookup example.comnslookup example.com 1.1.1.1
| Result | It suggests |
|---|---|
| Both give an answer | The name works. Look elsewhere |
| Yours fails, the other works | Your DNS server or its settings |
| Both say the name doesn't exist | A typing mistake, or the name isn't set up |
| Different answers | Maybe normal. Big sites and office systems often do this |
| Both time out | The network may be blocking the request |
An internal name may work only on the company's own DNS server. A public server not knowing it isn't a fault.
Free Starter Kit
First Paid IT Support Role Starter Kit
A job-title search list, a UK salary research sheet and a practice-to-interview checklist.
Get the free Starter Kit4. Look up other records
| Command | Shows |
|---|---|
nslookup -type=mx example.com | Where email for that name goes |
nslookup -type=txt example.com | Text records, often used to prove email is genuine |
nslookup -type=ns example.com | Which servers hold the records |
Type nslookup on its own to enter interactive mode. You'll see >. Type exit to leave.
5. Safe first steps
- Check the spelling of the name.
- Check whether one person or many are affected.
- Clear saved lookups with
ipconfig /flushdns. - Try again.
- Compare with a second server, if your team allows it.
- If several people are affected, escalate with both results.
Don't change a company PC's DNS settings just to get one site working. It can break access to internal systems.
6. A note that helps second line
Keep going with our guide to escalating a ticket, or the full troubleshooting method.
Paid course on GigLad Learning
Help Desk Technician for Beginners
A video course with a ten-ticket lab, a practical workbook, a CV bullet builder, interview preparation and a 30-day practice plan, plus a final assessment and certificate.
Sources
- Microsoft Learn, nslookup and ipconfig, checked 2 December 2026.
- GigLad Learning, Help Desk Technician for Beginners, chapter 5 (when to suspect DNS). Test result: our own, on 2 December 2026.
Keep learning
Educational content. No income, job or results are guaranteed.
