Internet Survival Guide: Resolving DNS Errors and Server Problems


Introduction to DNS and Servers

What is DNS?

DNS (Domain Name System) is often described as the "phone book of the internet." It's a hierarchical and decentralized naming system that translates human-friendly domain names (like www.example.com) into machine-readable IP addresses (like 192.0.2.1).

Key Functions of DNS:

  1. Name Resolution: Converts domain names to IP addresses

  2. Email Routing: Determines where to deliver emails for a domain (MX records)

  3. Service Discovery: Locates specific services (like SIP servers or LDAP services)

  4. Load Distribution: Spreads traffic across multiple servers

How DNS Works

  1. User Request: You type a URL into your browser

  2. Local Cache Check: Your device checks its local DNS cache

  3. Recursive Query: If not cached, your request goes to a recursive DNS server (usually your ISP's)

  4. Root Server: The recursive server queries a root nameserver

  5. TLD Server: The root directs to the appropriate Top-Level Domain server (.com, .org, etc.)

  6. Authoritative Server: The TLD server points to the domain's authoritative nameserver

  7. IP Returned: The authoritative server provides the IP address

  8. Website Loads: Your browser connects to the IP address

Types of DNS Servers

  1. Recursive Resolvers:

    • Receive requests from clients

    • Query other DNS servers on behalf of clients

    • Cache responses for future requests

  2. Root Nameservers:

    • 13 logical root servers (with hundreds of physical instances worldwide)

    • Direct queries to the appropriate TLD servers

  3. TLD Nameservers:

    • Handle requests for specific top-level domains (.com, .net, .org)

    • Point to the authoritative nameservers for domains

  4. Authoritative Nameservers:

    • Hold the actual DNS records for domains

    • Provide definitive answers for their domains

Common DNS Record Types

  • A Record: Maps a domain to an IPv4 address

  • AAAA Record: Maps a domain to an IPv6 address

  • CNAME Record: Creates an alias from one name to another

  • MX Record: Specifies mail servers for a domain

  • TXT Record: Holds text information (often for verification)

  • NS Record: Specifies authoritative nameservers for a domain

  • SOA Record: Contains administrative information about the zone

What is a Server?

A server is a computer or system that provides resources, data, services, or programs to other computers (clients) over a network. Servers can be physical machines or virtual instances.

Types of Servers:

  1. Web Servers: Serve web pages (Apache, Nginx, IIS)

  2. Database Servers: Store and manage data (MySQL, PostgreSQL, SQL Server)

  3. File Servers: Store and manage files (FTP servers, NAS devices)

  4. Mail Servers: Handle email transmission (Postfix, Exchange)

  5. DNS Servers: Handle domain name resolution (BIND, PowerDNS)

  6. Application Servers: Run specific applications (Tomcat, WebSphere)

  7. Game Servers: Host multiplayer games

  8. Proxy Servers: Act as intermediaries for requests

Server Hardware Considerations

When setting up a server, important hardware factors include:

  • Processor (CPU): Multiple cores for handling concurrent requests

  • Memory (RAM): More RAM allows for better performance with multiple connections

  • Storage: SSDs for faster access, RAID configurations for redundancy

  • Network Interface: High-speed connections (1Gbps, 10Gbps)

  • Redundancy: Backup power supplies, cooling systems

Server Operating Systems

Common server operating systems include:

  • Linux: Ubuntu Server, CentOS, Red Hat Enterprise Linux

  • Windows: Windows Server

  • Unix: FreeBSD, Solaris

Virtualization and Cloud Servers

Modern server deployment often uses:

  • Virtual Machines: Multiple virtual servers on one physical machine

  • Containers: Lightweight, isolated environments (Docker, Kubernetes)

  • Cloud Servers: Scalable, on-demand servers from providers (AWS, Azure, Google Cloud)

Understanding DNS and servers is fundamental for anyone working with networking, web development, or IT infrastructure. These systems work together to make internet services accessible and reliable for users worldwide.

 When you encounter DNS errors or server-related issues, it can disrupt your internet experience. Here’s a step-by-step guide to diagnosing and fixing these problems.


1. Check Your Internet Connection

Before blaming DNS or servers, ensure your internet is working:

  • Try opening a different website (e.g., Google, Bing).

  • Restart your router/modem (unplug for 30 seconds, then reconnect).

  • Test on another device (phone, tablet) to rule out device-specific issues.


2. Common DNS Errors & Fixes

Error: "DNS Server Not Responding" or "DNS_PROBE_FINISHED_NO_INTERNET"

This means your device can’t reach the DNS server to resolve domain names.

Fix:

  • Restart your router & device (often resolves temporary glitches).

  • Use a different DNS server (try Google DNS or Cloudflare DNS):

    • Google DNS: 8.8.8.8 & 8.8.4.4

    • Cloudflare DNS: 1.1.1.1 & 1.0.0.1

    How to change DNS:

    • Windows:
      Control Panel > Network and Sharing Center > Change adapter settings > Right-click your connection > Properties > IPv4 > Use custom DNS

    • Mac:
      System Preferences > Network > Advanced > DNS > Add new DNS servers

    • Router:
      Log in to your router admin panel (usually 192.168.1.1 or 192.168.0.1) and update DNS under WAN/LAN settings.

  • Flush DNS Cache (clears outdated DNS records):

    • Windows: Open Command Prompt as admin → ipconfig /flushdns

    • Mac/Linux: Terminal → sudo dscacheutil -flushcache (Mac) or sudo systemd-resolve --flush-caches (Linux)


3. Server-Related Issues

Error: "This Site Can’t Be Reached" or "Server Not Found"

If a specific website is down, but others work:

  • Check if the site is down for everyone:
    Use DownForEveryoneOrJustMe or IsItDownRightNow.

  • Try accessing via mobile data (in case of ISP blocking).

  • Disable VPN/Proxy (some servers block VPN traffic).

Error: "500 Internal Server Error" or "502 Bad Gateway"

This means the website’s server is malfunctioning.

  • Wait a few minutes and refresh (could be a temporary server overload).

  • Clear browser cache (Ctrl+Shift+Del in Chrome/Firefox).

  • Try a different browser (Edge, Firefox, Brave).


4. Advanced Troubleshooting

Check Hosts File (Malware or Misconfiguration)

  • Windows: C:\Windows\System32\drivers\etc\hosts
    Open with Notepad (as admin) and remove suspicious entries.

  • Mac/Linux: /etc/hosts
    Edit with sudo nano /etc/hosts.

Use Command Line Tools

  • Ping Test:
    ping google.com (checks if the domain resolves and responds).

  • Traceroute:
    tracert google.com (Windows) or traceroute google.com (Mac/Linux) to see where the connection fails.

Reinstall Network Drivers (Windows)

  • Open Device Manager → Network adapters → Right-click your adapter → Uninstall device → Restart PC to reinstall.


5. When All Else Fails

  • Contact your ISP (they may have DNS/server issues on their end).

  • Use a different network (mobile hotspot, public Wi-Fi) to test.

  • Reset network settings (last resort):

    • Windows: Settings > Network & Internet > Network Reset

    • Mac: System Preferences > Network > (Select connection) > Minus (-) button > Re-add


Final Thoughts

Most DNS and server issues can be fixed by:
✅ Restarting router & device
✅ Changing DNS servers
✅ Clearing cache
✅ Checking if the site is down globally

If problems persist, deeper troubleshooting (hosts file, traceroute) or ISP contact may be needed.

Comments

Popular posts from this blog

Cybersecurity Laws Every Business Should Know

DYNAMIC WAYS TO BUILD AN ECOMMERCE WEBSITE WITH WORDPRESS

Cloud Security Misconfigurations And How To Avoid Them