Русский flag Русский

Network Troubleshooting for Beginners: The Internet’s Phone Book (DNS)

Published on 2025-09-14

Introduction

You’ve gone through all the checks from the previous articles:

  • The computer has the correct IP address (ipconfig).
  • The router responds (ping 192.168.1.1).
  • Ping to a public address (ping 8.8.8.8) works.

Looks like the internet is fine! But the browser won’t open google.com. 🤔 Welcome to the most common cause of such issues — DNS failures.


What is DNS? 📖

The internet runs on IP addresses (e.g., 142.250.184.110), but people prefer names (google.com).

DNS (Domain Name System) is the global “phone book” that translates domain names into IP addresses. If DNS doesn’t work — you won’t reach a website, even if the connection is fine.

Today we’ll master two tools to check DNS: nslookup and dig.


nslookup — Simple Directory

What does it do?

Asks a DNS server a question and shows the response.

Usage

nslookup google.com

Successful response

Server:  _gateway
Address: 192.168.1.1

Non-authoritative answer:
Name:    google.com
Addresses: 2a00:1450:4001:82e::200e
          142.250.184.110
  • Server/Address — the DNS server that responded (usually your router).
  • Name/Addresses — the requested name and the resolved IPs.

Error

*** _gateway can't find google.com: Non-existent domain

The DNS server couldn’t find the address.

Trick: ask another DNS

nslookup google.com 8.8.8.8

If it works with 8.8.8.8 but not with your default — the issue lies with your ISP/router’s DNS.

👉 Conclusion: nslookup is a quick way to check if your PC can translate names into IPs.


dig — Advanced Directory

What does it do?

Provides a detailed report of a DNS query. Popular with admins. It’s usually available on Linux/macOS, and can be installed on Windows.

Usage

dig google.com

Key parts of the output

;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             242     IN      A       142.250.184.110

;; SERVER: 192.168.1.1#53(192.168.1.1)
  • QUESTION SECTION — what was asked.
  • ANSWER SECTION — the resolved IP address.
  • SERVER — who answered.

Query another DNS

dig @8.8.8.8 google.com

👉 Conclusion: dig gives more detail and is useful for tricky cases.


Conclusion

Congrats! You now know how to check if the internet’s “phone book” is working.

  • nslookup — fast and simple tool.
  • dig — powerful and detailed for deeper diagnostics.

If DNS works, the site’s IP is known, and ping succeeds — but the browser still won’t open the page? The server may be reachable, but the required service (e.g., web server) isn’t responding.


What’s Next?

In the next article, we’ll explore how to check if the “right door” is open on the server. For that, we’ll get to know telnet and nc (netcat).


Resources

Related reviews

Huge thanks to Mikhail for the work — I'm very pleased with the result. Special thanks for his recommendations during setup: from my rather muddled brief (I know little about servers), Mikhail, through clarifying questions and suggestions, formed a clear understanding of what the final build would accomplish and how best to organize everything. I recommend him!

ladohinpy · MikroTik hAP router setup. I'll set up a MikroTik Wi‑Fi router for you.

2025-07-21 · ⭐ 5/5

Many thanks to Mikhail for the work, I am very pleased with the result. I especially thank him for the recommendations during the setup process — from my rather muddled brief (and I know little about servers) Mikhail, with clarifying questions and suggestions of his own, formulated a clear understanding of what tasks the final build will solve and how to organize everything in the best way. I recommend!

An excellent specialist, a savvy expert, and a wonderful person. In an hour he fixed what we'd been racking our brains over for days! I'm sure this won't be the last time we rely on his boundless professionalism.

Ravenor · MikroTik hAP router setup. I'll configure a MikroTik Wi-Fi router for you.

2025-05-28 · ⭐ 5/5

An excellent specialist, a savvy expert, and a wonderful person. In an hour he fixed for us what we had been scratching our heads over for days! I'm sure this won't be the first time we make use of his boundless professionalism.

Need help?

Get in touch with me and I'll help solve the problem

Related Posts