How to fix dns not resolving ip address

Quick Answer

DNS not resolving IP address means your system cannot translate domain names into numerical IP addresses, blocking internet access. This occurs due to misconfigured DNS servers, cache corruption, firewall rules, or ISP issues. Flushing DNS cache and switching to public resolvers like 1.1.1.1 or 8.8.8.8 typically fixes it within minutes.

Why This Matters

DNS resolution failures account for approximately 15% of all website downtime incidents according to Catchpoint’s 2025 Internet Performance Report. When DNS fails, users see “server not found” errors even though their internet connection works perfectly. For businesses, every minute of DNS failure can cost thousands in lost revenue and damage brand trust. Understanding DNS troubleshooting is essential for anyone managing websites, servers, or even home networks in 2026.

What Is DNS Resolution and Why Does It Fail?

DNS (Domain Name System) acts as the internet’s phonebook, converting human-readable domains like abdulabror.com into IP addresses like 104.21.68.23 that computers use to communicate. The resolution process involves multiple steps: your device queries a recursive resolver, which then contacts root servers, TLD servers, and finally authoritative nameservers.

Resolution failures happen when any link in this chain breaks. Common causes include:

  • Corrupted DNS cache storing outdated or invalid IP mappings
  • Misconfigured DNS server addresses pointing to non-existent or unresponsive resolvers
  • Firewall or antivirus software blocking port 53 (DNS standard port)
  • ISP DNS server outages affecting entire regions
  • Network configuration errors after OS updates or VPN usage
  • DNSSEC validation failures when security signatures don’t match

According to Cloudflare’s 2025 DNS analytics, misconfigured client settings cause 43% of resolution failures, while upstream server issues account for 31%.

How Do You Diagnose DNS Resolution Problems?

Before attempting fixes, confirm DNS is actually the problem. Open your terminal or command prompt and run these diagnostic commands:

# Test if DNS resolution works
nslookup google.com

# Check which DNS server is being used
nslookup google.com 8.8.8.8

# Test connectivity to DNS server
ping 8.8.8.8

# Query specific record types
dig abdulabror.com A +short

If nslookup times out or returns “server can’t find” errors while direct IP ping works, DNS is definitely your issue. If nslookup works with 8.8.8.8 but fails without specifying a server, your configured DNS resolver is the problem.

On Windows, check your DNS settings by running ipconfig /all and looking for “DNS Servers” entries. On Linux or macOS, examine /etc/resolv.conf to see which nameservers your system queries.

How to Fix DNS Cache Issues

DNS cache corruption is the most frequent cause of resolution failures. Your operating system stores DNS lookup results to speed up future requests, but this cache can become outdated or corrupted after network changes.

Flush your DNS cache using these commands:

# Windows
ipconfig /flushdns

# macOS
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

# Linux (systemd-resolved)
sudo systemd-resolve --flush-caches

# Linux (nscd)
sudo /etc/init.d/nscd restart

# Docker containers
docker exec container_name kill -HUP 1

After flushing, test resolution again with nslookup. If the problem persists, the issue lies deeper in your network configuration or with external DNS servers.

Browser-specific DNS caches also exist. In Chrome, visit chrome://net-internals/#dns and click “Clear host cache”. Firefox users should restart the browser after flushing system DNS.

Which DNS Servers Should You Use?

Switching from your ISP’s default DNS servers to reliable public resolvers often resolves persistent issues. ISP resolvers frequently suffer from overload, poor maintenance, or censorship filters that break legitimate lookups.

Top public DNS providers for 2026:

  • Cloudflare (1.1.1.1, 1.0.0.1) – Fastest average response time at 10ms globally, strong privacy policy
  • Google Public DNS (8.8.8.8, 8.8.4.4) – Most reliable uptime, extensive infrastructure
  • Quad9 (9.9.9.9, 149.112.112.112) – Blocks malicious domains automatically
  • OpenDNS (208.67.222.222, 208.67.220.220) – Customizable filtering options

To change DNS servers on Windows: Open Network Connections, right-click your active adapter, select Properties → Internet Protocol Version 4 → Properties, choose “Use the following DNS server addresses” and enter your preferred resolvers.

On Linux, edit /etc/resolv.conf:

nameserver 1.1.1.1
nameserver 1.0.0.1

For permanent changes on systems using NetworkManager or systemd-resolved, configure DNS through your network management tool rather than editing resolv.conf directly.

How Do You Fix Firewall and Network Blocks?

Security software and firewalls sometimes block DNS traffic, especially after updates or when using VPNs. DNS queries use UDP port 53 by default, with TCP port 53 as fallback for larger responses.

Check Windows Firewall rules:

# List firewall rules affecting DNS
netsh advfirewall firewall show rule name=all | findstr /i "dns"

# Temporarily disable firewall for testing (run as admin)
netsh advfirewall set allprofiles state off

On Linux with iptables, verify DNS isn’t blocked:

# Check for blocking rules
sudo iptables -L -n | grep 53

# Allow DNS queries (if needed)
sudo iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
sudo iptables -A INPUT -p udp --sport 53 -j ACCEPT

According to OWASP’s 2025 guidelines, legitimate DNS traffic should never be blocked on client devices. If disabling your firewall temporarily resolves the issue, create specific allow rules for DNS rather than leaving protection disabled.

VPN software can override DNS settings. Check your VPN client configuration and disable “DNS leak protection” temporarily to test if that’s causing resolution failures.

What About DNS-over-HTTPS and DNS-over-TLS Issues?

Modern systems increasingly use encrypted DNS protocols (DoH and DoT) for privacy. While beneficial, these can fail if your resolver doesn’t support them or network middleboxes interfere.

If you recently enabled DoH in browsers or system settings, try disabling it temporarily. In Firefox, visit about:config and set network.trr.mode to 0 (disabled). Chrome users should check Settings → Privacy → Security → Use secure DNS.

For systems using systemd-resolved with DNS-over-TLS, check configuration:

# Check systemd-resolved status
resolvectl status

# Edit configuration
sudo nano /etc/systemd/resolved.conf

# Set DNSOverTLS=no temporarily, then restart
sudo systemctl restart systemd-resolved

GitHub’s infrastructure team notes that approximately 8% of DoH failures stem from corporate proxies that can’t inspect encrypted DNS, triggering false positives in security systems.

Related Guides on abdulabror.com

FAQ

Q: Why does DNS work for some websites but not others?

Partial DNS failures usually indicate cached corrupted records for specific domains or regional DNS server issues. Some authoritative nameservers may be unreachable from your location while others work fine. Flushing your DNS cache and switching to a different public resolver typically fixes selective resolution failures.

Q: Can malware cause DNS resolution problems?

Yes, DNS hijacking malware redirects queries to malicious servers or blocks legitimate DNS traffic entirely. If standard fixes fail and you notice unexpected DNS server addresses in your network settings, run a full antivirus scan and check your hosts file at C:\Windows\System32\drivers\etc\hosts (Windows) or /etc/hosts (Linux) for suspicious entries.

Q: How long does DNS cache last before expiring?

TTL (Time To Live) values set by domain owners determine cache duration, typically ranging from 300 seconds (5 minutes) to 86400 seconds (24 hours). Your operating system and browser maintain separate caches that respect these TTLs. However, bugs or misconfigurations can cause stale entries to persist indefinitely until manually flushed.

Q: Should I use IPv4 or IPv6 DNS servers?

Use both when available. IPv6 adoption reached 47% globally in 2026, but IPv4 remains universally supported. Configure both IPv4 DNS (like 8.8.8.8) and IPv6 DNS (like 2001:4860:4860::8888) to ensure resolution works regardless of connection type. Your system automatically chooses the appropriate protocol.

Q: Why does DNS fail only when using VPN?

VPN software often forces all DNS queries through the VPN tunnel or to specific DNS servers. If the VPN’s DNS servers are overloaded, misconfigured, or blocking certain domains, resolution fails. Check your VPN client settings for DNS options, or configure split-tunneling to exclude DNS traffic from the VPN tunnel while maintaining encrypted web traffic.

References



Leave A Comment

Need help with WordPress or hosting?

Based in Bali, Indonesia

Providing technical hosting support and WordPress services to clients worldwide. Remote-friendly, reliable, and always focused on practical solutions.

Samping work with me