15%

Save 15% on All Hosting Services

Test your skills and get Discount on any hosting plan

Use code:

Skills
Get Started
08.10.2024

How to Fix the “Server IP Address Could Not Be Found” Error

The "Server IP address could not be found" error means your browser submitted a DNS query for a domain name and received no valid IP address in response — so no TCP connection was ever attempted. The root cause is almost always a failure somewhere in the DNS resolution chain: a stale local cache, a misconfigured resolver, a propagation delay after a DNS record change, or a genuine server-side outage.

This guide covers every layer of that chain — from the browser's own DNS cache down to your ISP's recursive resolver and the authoritative nameserver — with exact commands, registry-level details, and the edge cases that generic tutorials miss.

What Actually Happens During DNS Resolution

Before troubleshooting, understanding the resolution path prevents wasted effort. When you type a URL into a browser, the following lookup sequence fires in order:

  1. Browser DNS cache — Chrome, Firefox, and Edge each maintain their own in-memory DNS cache, separate from the OS.
  2. OS resolver cache — Windows DNS Client service or macOS mDNSResponder checks its local cache.
  3. Hosts file — A static override file that takes precedence over all network-based resolution.
  4. Configured DNS resolver — Usually your router (acting as a forwarder) or a directly configured public resolver like `8.8.8.8`.
  5. Recursive resolver at ISP — Your ISP's resolver queries the global DNS hierarchy if it has no cached answer.
  6. Authoritative nameserver — The final source of truth for the domain's A/AAAA records.

A failure at any of these stages produces the same generic browser error. Knowing which layer is broken determines which fix to apply first.

Step 1: Verify the URL and Test Scope

This step sounds trivial but eliminates two of the most common causes immediately.

  • Check for typos in the address bar, including incorrect TLDs (`.co` vs `.com`, `.net` vs `.org`).
  • Test a second domain you know is live (e.g., `google.com`). If that also fails, the problem is network-wide on your machine, not domain-specific.
  • Test from a mobile device on cellular data (not Wi-Fi). If the site loads there, the issue is local to your network or machine.
  • Run a quick DNS lookup from the command line to bypass the browser entirely:

“`bash

Windows / macOS / Linux

nslookup example.com

“`

If `nslookup` returns an IP address but the browser still errors, the problem is browser-specific. If `nslookup` also fails, the problem is at the OS resolver level or deeper.

Step 2: Clear the Browser's Internal DNS Cache

Every major browser caches DNS records independently of the operating system. Clearing only the OS cache while ignoring the browser cache is a common oversight.

Google Chrome and Edge (Chromium-based):

Navigate to the following internal URL in the address bar:

“`

chrome://net-internals/#dns

“`

Click "Clear host cache". Then navigate to:

“`

chrome://net-internals/#sockets

“`

Click "Flush socket pools" to also clear any stale TCP connections tied to old IP addresses.

Firefox:

Firefox does not expose a direct DNS flush UI. The most reliable method is:

  1. Open `about:config` in the address bar.
  2. Search for `network.dnsCacheExpiration`.
  3. Temporarily set the value to `0`, reload the page, then restore it to `60` (the default).

Alternatively, restarting Firefox with all tabs closed flushes its DNS cache completely.

Clearing browser cookies and cached files can also help when a redirect loop or stale response is involved:

  • Chrome: Menu > More Tools > Clear Browsing Data > select Cached images and files and Cookies and other site data > Clear data.

Step 3: Flush the Operating System DNS Cache

The OS-level DNS resolver cache stores records until their TTL expires. If a domain recently changed its DNS records (e.g., a server migration or IP change), your machine may be holding the old, now-invalid record long past its TTL due to a resolver bug or a very high original TTL.

Windows (all versions):

Open Command Prompt as Administrator and run:

“`cmd

ipconfig /flushdns

“`

Expected output: `Successfully flushed the DNS Resolver Cache.`

For a more thorough reset, also clear the NetBIOS cache:

“`cmd

nbtstat -R

“`

macOS (version-specific commands):

macOS VersionCommand
Ventura / Sonoma (13/14)`sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`
Monterey (12)`sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`
Big Sur (11)`sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder`
Catalina / Mojave (10.15/10.14)`sudo killall -HUP mDNSResponder`
High Sierra and earlier`sudo killall -HUP mDNSResponder; sudo dscacheutil -flushcache`

Linux (systemd-resolved):

“`bash

sudo systemd-resolve –flush-caches

sudo systemd-resolve –statistics # Verify cache was cleared

“`

If using `nscd` instead:

“`bash

sudo service nscd restart

“`

Step 4: Restart Your Router and Renew Your IP Lease

Your home router typically acts as a DNS forwarder — it receives your DNS queries and forwards them to your ISP's resolver. A router with a corrupted ARP table or a stale DHCP lease can cause DNS failures that look identical to server-side problems.

Router restart procedure:

  1. Power off the router and unplug it from the power source.
  2. Wait a full 30 seconds (capacitors need to discharge for a true cold reboot).
  3. Power it back on and wait for all indicator lights to stabilize before testing.

Renew your IP address after the router restarts:

*Windows:*

“`cmd

ipconfig /release

ipconfig /renew

“`

*macOS:*

Navigate to System Settings > Network > select your active interface > Details > TCP/IP > Renew DHCP Lease.

*Linux:*

“`bash

sudo dhclient -r && sudo dhclient

“`

Edge case: If you are on a corporate or university network with DHCP reservations, renewing the lease may not change your IP but will refresh the DNS server assignments pushed by DHCP option 6. This alone can resolve the issue if your IT team recently changed their internal DNS server addresses.

Step 5: Switch to a Reliable Public DNS Resolver

Your ISP's recursive resolver is often the weakest link. ISP resolvers can suffer from cache poisoning, NXDOMAIN hijacking (redirecting failed lookups to ad pages), or simple outages. Switching to a well-maintained public resolver is frequently the fastest fix.

DNS Resolver Comparison

ProviderPrimary DNSSecondary DNSProtocol SupportNotable Feature
Google Public DNS`8.8.8.8``8.8.4.4`DNS-over-HTTPS, DNS-over-TLSExtremely high uptime, global anycast
Cloudflare`1.1.1.1``1.0.0.1`DNS-over-HTTPS, DNS-over-TLSFastest average response time globally
OpenDNS (Cisco)`208.67.222.222``208.67.220.220`Standard UDP/TCPOptional content filtering
Quad9`9.9.9.9``149.112.112.112`DNS-over-HTTPS, DNS-over-TLSMalware-blocking via threat intelligence
NextDNSCustomCustomDNS-over-HTTPS, DNS-over-TLSFully configurable per-device filtering

How to change DNS on Windows:

  1. Open Control Panel > Network and Sharing Center > Change adapter settings.
  2. Right-click your active network adapter > Properties.
  3. Select Internet Protocol Version 4 (TCP/IPv4) > Properties.
  4. Select Use the following DNS server addresses and enter your chosen resolver.
  5. Repeat for Internet Protocol Version 6 (TCP/IPv6) using the IPv6 addresses of your chosen resolver (e.g., Cloudflare IPv6: `2606:4700:4700::1111` and `2606:4700:4700::1001`).
  6. Click OK and run `ipconfig /flushdns` again to clear any cached entries from the old resolver.

How to change DNS on macOS:

  1. System Settings > Network > select your interface > Details > DNS.
  2. Click the + button and add your preferred DNS addresses.
  3. Remove the old ISP-assigned entries.
  4. Click OK > Apply.

Critical nuance: Changing DNS at the OS level does not affect applications that use their own built-in DNS resolution (e.g., some VPN clients, certain browsers with DNS-over-HTTPS enabled). Verify your browser's DNS settings separately.

Step 6: Inspect and Correct the Hosts File

The hosts file is a local static DNS override that takes absolute precedence over all network-based resolution. A single malformed or malicious entry can silently block an entire domain. Malware frequently targets this file to redirect or block specific domains.

Windows hosts file location:

“`

C:WindowsSystem32driversetchosts

“`

Open with Notepad running as Administrator. A legitimate hosts file should contain only:

“`

127.0.0.1 localhost

::1 localhost

“`

Any additional entries pointing a domain to `0.0.0.0`, `127.0.0.1`, or any unexpected IP address should be investigated and removed if unauthorized.

macOS / Linux hosts file:

“`bash

sudo nano /etc/hosts

“`

Look for any lines that are not comments (lines starting with `#`) and that reference the domain you are trying to reach. Remove them, save the file (`Ctrl+X`, then `Y` in nano), and flush the DNS cache as described in Step 3.

Pro tip: After editing the hosts file on Windows, you must flush the DNS cache with `ipconfig /flushdns` for the change to take effect immediately without a reboot.

Step 7: Disable VPN, Proxy, and DNS-over-HTTPS Conflicts

VPN clients and proxy configurations are among the most overlooked causes of DNS resolution failures, particularly in enterprise environments.

VPN-related DNS leaks and failures:

When a VPN is active, it typically installs a virtual network adapter and redirects all DNS queries through the VPN tunnel to the provider's internal resolver. If the VPN connection drops but the virtual adapter remains active, DNS queries are sent into a dead tunnel and time out. Disable the VPN client entirely (not just disconnect) and test.

Disable proxy on Windows:

Settings > Network & Internet > Proxy > toggle off Use a proxy server and Automatically detect settings (the latter can cause delays via WPAD discovery).

DNS-over-HTTPS (DoH) conflicts:

Chrome, Firefox, and Edge can be configured to use a specific DoH provider, bypassing the OS resolver entirely. If that DoH provider is unreachable or misconfigured, DNS resolution fails silently.

  • Chrome: Settings > Privacy and security > Security > Use secure DNS — verify the configured provider or switch to "With your current service provider."
  • Firefox: Settings > General > scroll to Network Settings > Settings > check the Enable DNS over HTTPS option and the configured provider.

Step 8: Update or Reinstall Network Adapter Drivers

Corrupted or outdated network adapter drivers can cause intermittent DNS failures, packet loss, and connection drops that manifest as DNS errors.

Windows:

  1. Press `Win + X` > Device Manager.
  2. Expand Network Adapters.
  3. Right-click your active adapter > Update driver > Search automatically for drivers.
  4. If Windows finds no update, visit the adapter manufacturer's website (Intel, Realtek, Broadcom) and download the latest driver directly.
  5. For a full reinstall: right-click the adapter > Uninstall device > check Delete the driver software for this device > reboot. Windows will reinstall a clean driver on restart.

Advanced Windows network stack reset (use when driver updates do not help):

“`cmd

netsh winsock reset

netsh int ip reset

ipconfig /flushdns

ipconfig /registerdns

“`

Reboot after running all four commands. This resets the Winsock catalog and TCP/IP stack to their defaults, resolving issues caused by malware, failed VPN software uninstalls, or corrupted stack entries.

Step 9: Diagnose Server-Side and DNS Propagation Issues

If all client-side steps fail, the problem may be external — either the domain's DNS records are not resolving globally, or the server itself is unreachable.

Check whether the domain resolves from external vantage points:

Use these tools to query the domain from multiple global locations simultaneously:

  • dnschecker.org — Shows A record propagation across 100+ global nameservers.
  • whatsmydns.net — Checks DNS propagation for A, CNAME, MX, and other record types.
  • downforeveryoneorjustme.com — Confirms whether the site is globally unreachable or only unreachable from your location.

DNS propagation delays:

If a domain recently had its A record, nameservers, or hosting changed, propagation can take anywhere from a few minutes to 48 hours depending on the TTL value set on the old record. During this window, some resolvers worldwide will return the old (now invalid) IP address while others return the new one. This is a server-side/DNS administration issue, not a client-side problem.

If you manage the domain yourself and recently migrated your site to a new server — for example, moving to a VPS Hosting environment — verify that the A record in your DNS zone points to the new server's IP address and that the old TTL has fully expired.

Check the authoritative nameserver directly:

“`bash

Query the authoritative nameserver directly, bypassing all caches

nslookup example.com ns1.yourdnshost.com

“`

If the authoritative nameserver returns the correct IP but your local resolver does not, the issue is cache propagation. If the authoritative nameserver itself returns no record or an incorrect record, the DNS zone configuration needs to be corrected.

Step 10: Contact Your ISP or Hosting Provider

If the domain resolves correctly from external vantage points but not from your network, your ISP's resolver may be filtering, blocking, or returning incorrect results for that domain. This is more common than most users realize — some ISPs implement DNS-level blocking for regulatory compliance, and these blocks occasionally catch legitimate domains.

Test by temporarily using a different resolver (as described in Step 5). If the domain resolves correctly with `8.8.8.8` but not with your ISP's resolver, contact your ISP and report the specific domain as incorrectly blocked or cached.

If you are the site owner and your users are reporting this error, the issue may be with your hosting configuration. Verify:

  • Your domain's A record points to the correct server IP.
  • Your SSL Certificates are valid and not causing redirect loops that prevent initial connection.
  • Your nameservers are correctly set at your Domain Registration provider.
  • Your server is actually running and the web service (Apache, Nginx) is active.

For high-traffic or mission-critical sites, consider moving to a Dedicated Server to eliminate shared-resource issues that can cause intermittent DNS or connectivity failures.

Comparison: Client-Side vs. Server-Side Causes

SymptomLikely CauseFix Location
Error on one browser, works in anotherBrowser DNS cache or DoH configClient — browser settings
Error on all browsers, works on mobile dataOS DNS cache or ISP resolverClient — flush cache, change DNS
Error on all devices on the networkRouter DNS issue or ISP outageRouter or ISP
Error only for one specific domainDNS propagation or zone misconfigurationServer/DNS admin side
Error globally (confirmed via dnschecker.org)Server down or DNS zone deletedHosting provider / server admin
Error after VPN install/uninstallCorrupted Winsock or DNS routingClient — netsh reset

Practical Decision Matrix and Key Takeaways

Work through this checklist in order to minimize diagnostic time:

  • Confirm scope first. Does the error affect one domain, one browser, one device, or the entire network? This single question eliminates 80% of irrelevant steps.
  • Run `nslookup` before touching any settings. If it resolves the IP, the fix is browser-level. If it fails, the fix is OS-level or deeper.
  • Flush in the right order: browser DNS cache first, then OS DNS cache, then router restart. Doing them in reverse wastes time.
  • Always flush the OS DNS cache after changing DNS server settings. The new resolver will not be queried for domains already cached under the old resolver until the cache is cleared.
  • Check the hosts file if the domain was recently working and suddenly stopped. This is a strong indicator of malware or a misconfigured security tool.
  • Use `netsh winsock reset` on Windows only as a last resort — it resets all Winsock entries including legitimate entries added by software like VPN clients, which may need reinstalling afterward.
  • If you are a site owner, verify your DNS zone records immediately after any server migration. If you are running your site on a VPS with cPanel, the WHM DNS Zone Editor provides direct access to all records. If you are on Shared Web Hosting, use the hosting control panel's DNS management section to confirm the A record is current.
  • For email-related DNS failures (MX records not resolving), check your Email Hosting provider's nameserver configuration separately — MX records are independent of A records and can fail independently.

FAQ

Why does the "server IP address could not be found" error appear only in Chrome but not in Firefox?

Chrome and Firefox maintain separate internal DNS caches and can be configured to use different DNS-over-HTTPS providers. If Chrome has a stale or corrupted cache entry, or its DoH provider is unreachable, it will fail while Firefox succeeds using the OS resolver. Navigate to `chrome://net-internals/#dns` and click "Clear host cache" to resolve this.

How long does DNS propagation take after changing a domain's A record?

Propagation time depends on the TTL (Time To Live) value set on the record before the change. If the old TTL was 3600 seconds (1 hour), most resolvers will cache the old record for up to one hour. If the TTL was 86400 seconds (24 hours), propagation can take up to 48 hours in edge cases. Lowering the TTL to 300 seconds several hours before a planned migration significantly reduces propagation time.

Can a firewall or antivirus cause this DNS error?

Yes. Security software that includes DNS filtering (Windows Defender, Malwarebytes, Kaspersky, etc.) can intercept and block DNS queries for domains flagged as malicious. If the error appeared immediately after installing or updating security software, temporarily disable the DNS protection component (not the entire antivirus) and test. Also check whether the software has added entries to your hosts file.

What is the difference between `ipconfig /flushdns` and `netsh winsock reset`?

`ipconfig /flushdns` clears only the Windows DNS resolver cache — it removes cached DNS records so the next query goes to the configured resolver fresh. `netsh winsock reset` resets the entire Windows Sockets API catalog to its default state, fixing deeper corruption in the network stack itself. The Winsock reset requires a reboot and should only be used when DNS flushing and driver updates have not resolved the issue.

If the domain resolves correctly via `nslookup` but the browser still shows the error, what should I check?

This scenario typically points to one of three causes: the browser's internal DNS cache still holds a stale record (clear it via `chrome://net-internals/#dns`), the browser's socket pool has a stale connection (flush via `chrome://net-internals/#sockets`), or a browser extension (particularly proxy or VPN extensions) is intercepting and failing the DNS request. Disable all extensions and test in a private/incognito window to isolate extension interference.

15%

Save 15% on All Hosting Services

Test your skills and get Discount on any hosting plan

Use code:

Skills
Get Started