๐Ÿงญ Debugging a Real DNS Outage โ€” When My Website Worked on Mobile but Not Wi-Fi

By Ankit Tiwari โ€” October 2025


๐Ÿšจ The Incident

Today (22nd October 2025) afternoon, I noticed that my website iskconsarjapurroad.com was not working on my laptop's WiFi connection. ๐Ÿ˜ฐ Panicking, I quickly checked the VM - all metrics were good โœ…. Then I checked on my mobile, and to my surprise it was working perfectly fine on mobile data! ๐Ÿ“ฑ

Yes, it was a sigh of relief ๐Ÿ˜ฎโ€๐Ÿ’จ - it wasn't an outage for all my users. That's when I got a hunch that the issue was with my WiFi network ๐Ÿค”.


๐Ÿงฉ Step 1 โ€” Verifying the Problem

I started by checking if my system could resolve the domain using nslookup ๐Ÿ”.

Terminal showing SERVFAIL for iskconsarjapurroad.com

Figure 1 โ€” DNS lookup failed with SERVFAIL on Wi-Fi.

This meant my system reached the DNS server (192.168.0.1) but it couldn't fetch the IP address for my domain โ€” a clear sign of DNS resolver trouble โš ๏ธ.


โš™๏ธ Step 2 โ€” Checking My DNS Configuration

Terminal showing DNS configuration

Figure 2 โ€” DNS configuration showing router as resolver.

This showed that my Mac was using my router (192.168.0.1) as its DNS resolver ๐Ÿ . The router in turn forwarded all DNS traffic to my Internet Service Provider's DNS servers ๐ŸŒ.


๐ŸŒ Step 3 โ€” Verifying the Request Route (Traceroute)

To confirm where my network traffic was actually going, I ran the following commands ๐Ÿ•ต๏ธ:

Terminal showing ISP information

Figure 3 โ€” Traceroute showing ISP path to Google DNS.

This told me my ISP is Intech Online Pvt Ltd ๐Ÿข. Then, I traced the route to 8.8.8.8 (Google's DNS) to see the actual network hops ๐Ÿ›ฃ๏ธ:

Here's what each hop means ๐Ÿ“:

This verified that all requests from my Mac were indeed passing through Intech's network infrastructure ๐ŸŒ. So, if there's a delay or SERVFAIL, it's likely happening at their DNS resolver ๐ŸŽฏ.


๐Ÿงฑ Step 4 โ€” Router's DNS Setup

Terminal showing router's DNS setup

Figure 4 โ€” Router's DNS setup showing ISP DNS and Google DNS.

Here, 103.14.232.100 belongs to my ISP (Intech Online Pvt Ltd) ๐Ÿข, and 8.8.8.8 is Google's public DNS ๐ŸŒ. The router always queries the primary DNS first โ€” so everything depended on the ISP's resolver โšก.


๐Ÿงช Step 5 โ€” Comparing DNS Speeds

Terminal showing DNS speed comparison

Figure 5 โ€” DNS query speed with my ISP DNS resolver.

2.49 seconds โ€” that's unusually high ๐ŸŒ! When I tested Google DNS, it responded in just 140 ms โšก:

DNS query speed with Google DNS resolver

Figure 6 โ€” DNS query speed with Google DNS resolver.

This clearly pointed to an issue with the ISP's DNS resolver being slow or unreliable ๐Ÿšจ.


๐Ÿ” Step 6 โ€” Confirming the Issue

nslookup iskconsarjapurroad.com 103.14.232.100   โ†’ SERVFAIL
nslookup iskconsarjapurroad.com 8.8.8.8          โ†’ Works instantly

๐Ÿ” Understanding the nslookup Command

Command Breakdown:

What SERVFAIL means:

Key Insights:

The first query failed using my ISP's DNS, but the second one (via Google) worked immediately. That confirmed the culprit โ€” the ISP's DNS server was failing intermittently.


๐Ÿงฐ Step 7 โ€” Before vs After (Visual)

Hereโ€™s how the DNS query was flowing before and after the fix.

๐Ÿšซ Before โ€” ISP DNS Failing

My Mac Router ISP DNS Website ISP DNS Unresponsive

Before โ€” DNS query stopped at ISP DNS (103.14.232.100).

โœ… After โ€” Switched to Google DNS

My Mac Router Google DNS Website

After โ€” DNS query now flows smoothly via Google (8.8.8.8) to the website.


โš™๏ธ Step 8 โ€” Fixing It on macOS

Option 1 โ€” Using System Settings (GUI) ๐Ÿ–ฑ๏ธ

  1. Open System Settings โ†’ Network ๐Ÿ”ง
  2. Select your active connection (Wi-Fi) ๐Ÿ“ถ
  3. Click Details โ†’ DNS ๐ŸŒ
  4. Remove 192.168.0.1 and add:
    8.8.8.8    โ† Google DNS ๐ŸŒ
    1.1.1.1    โ† Cloudflare DNS โšก
  5. Click OK โ†’ Apply โœ…

Option 2 โ€” Using Terminal ๐Ÿ’ป

sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 1.1.1.1

To verify it worked ๐Ÿ”:

networksetup -getdnsservers Wi-Fi
8.8.8.8    โœ…
1.1.1.1    โœ…

โœ… Step 9 โ€” Verifying the Fix

nslookup iskconsarjapurroad.com
Server:  8.8.8.8       โ† Now using Google DNS! ๐ŸŒ
Address: 8.8.8.8#53
Name:    iskconsarjapurroad.com
Address: 34.47.185.39  โ† Success! โœ…

Everything resolved instantly โ€” no more timeouts or failures! ๐ŸŽ‰ Switching to Google's DNS permanently solved the issue ๐Ÿš€.


๐Ÿง  Why Using Google DNS Works Better


๐Ÿงพ Final Summary

Problem ๐ŸšจRoot Cause ๐Ÿ”Fix โœ…
Website not loading on Wi-FiISP DNS timeout / SERVFAILSwitched to Google DNS (8.8.8.8)
Slow DNS responseISP resolver latencyUse public resolvers (8.8.8.8, 1.1.1.1)

What started as a simple "Wi-Fi not working but mobile does" problem turned into a deep DNS investigation ๐Ÿ•ต๏ธ. By switching to Google's DNS, my website now loads instantly everywhere โ€” and I learned a ton about how resolvers, ISPs, and routes actually work! ๐ŸŽ“โœจ


๐Ÿ™ Thanks for Reading!

I hope I made your time worth it! ๐Ÿ˜Š

If this helped you debug DNS issues or learn something new about networking, feel free to share it with fellow developers! ๐Ÿš€

๐Ÿ’ป ๐ŸŒ ๐Ÿ”ง โœจ