Knowledgebase 0
0 (850) 303 31 32 ISO Certificate Blog FAQ Contact
TRY: 1.00 TL
USD: 50.58 TL
Support Ticket Deals
0 Register
Oweb Bulut İnternet Hizmetleri A.Ş. Joint-Stock Company
0 (850) 303 31 32
Beşiktaş / ISTANBUL
Maslak Tax Office - 6341135657
Commercial Info Bank Accounts Legal Agreements
About the Company Everything you need to know
  1. Home
  2. Knowledge Base
  3. General Guides
  4. How to Flush DNS Cache on Windows 11 and Mac: Step-by-Step Guide

How to Flush DNS Cache on Windows 11 and Mac: Step-by-Step Guide

General Guides 26 min read 11 views

Flushing the DNS cache deletes the domain name to IP address mappings that your computer, browser or router has stored, so the current DNS record is looked up again on your next visit. In most cases it is enough to run ipconfig /flushdns in a Command Prompt opened as administrator on Windows 11, or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal on a Mac. The browser's own DNS cache is cleared separately.

Quick summary

  • The DNS cache is a temporary store where answers for previously resolved domain names are kept until their TTL expires. Separate copies are kept in the browser, the operating system, the router and the DNS resolver.
  • The command to flush DNS on Windows 11 is ipconfig /flushdns. When it succeeds you will usually see the message "Successfully flushed the DNS Resolver Cache."; on systems in other display languages the text may differ.
  • The PowerShell equivalent is Clear-DnsClientCache; it does the same job but prints nothing on screen.
  • The command to flush DNS on a Mac asks for an administrator password and shows no message when it succeeds.
  • In Chrome and Edge, use the "Clear host cache" button on chrome://net-internals/#dns or edge://net-internals/#dns; in Firefox, use the "Clear DNS Cache" button on about:networking#dns.
  • You cannot clear your internet service provider's DNS cache. You need to wait for the TTL to expire or test with a different resolver such as 1.1.1.1 or 8.8.8.8.
  • Flushing is safe: it does not delete files, does not affect saved passwords and does not make your internet faster. It only removes old answers from the cache.
  • You can view the local cache with ipconfig /displaydns or, in PowerShell, with Get-DnsClientCache, and check whether a specific domain is in the cache with Resolve-DnsName yourdomain.com -CacheOnly. To check the answer DNS servers are giving, use nslookup yourdomain.com 8.8.8.8.

DNS cache flush guide cover: ipconfig /flushdns in an administrator terminal with the Successfully flushed the DNS Resolver Cache success message

What is the DNS cache and where is it stored?

When you visit a website, your device first has to find out which IP address the domain name points to. It asks a DNS resolver, and the resolver goes as far as the domain's authoritative DNS server if needed. Asking the same question from scratch on every click would waste time, so the answer is stored briefly in several places along the way. That is the answer to the question what is the DNS cache: a temporary copy of DNS answers that have already been received.

These copies are kept separately, and clearing one does not affect the others. This is the most common reason people say "I flushed it, but the old site still opens" after moving a site to a new server.

Five layers where DNS answers are stored (browser, operating system, modem, internet provider and public resolvers) and the TTL that sets how long records are kept

  1. Browser: Chrome and Edge keep their own host resolver cache, and Firefox keeps its own DNS cache. This layer is cleared from the browser's internal pages.
  2. Operating system: Windows has the resolver cache of the DNS Client service, and entries in the Hosts file are loaded into it as well. On macOS this job is done by mDNSResponder, and on many Linux distributions by systemd-resolved.
  3. Modem or router: Many home and office routers cache the DNS answers they receive. Restarting the router clears this copy.
  4. Internet service provider's resolver: Your default DNS server usually belongs to your provider. As a user, you cannot access this cache.
  5. Public resolvers: Services such as Google Public DNS (8.8.8.8) and Cloudflare (1.1.1.1) also have caches, and they offer public refresh tools.
  6. TTL: The domain's authoritative DNS server decides how long a record may be stored. All the layers above follow this value.

How does TTL determine how long an answer lives?

Every DNS record carries a TTL (Time To Live) value in seconds. This value is defined in RFC 1035 and tells caches the maximum time they may keep the answer. For example, if the TTL is 3600, a resolver may hold the answer for up to one hour. That is why not everyone sees the new address the moment you change a record; every layer that has already received the old answer keeps using it until its own timer runs out. We explain what the waiting time depends on in detail in our how long does DNS propagation take guide.

Some resolvers also apply their own upper limits. Google Public DNS states on its FAQ (Frequently Asked Questions) page that records are generally cached for no more than six hours, even when their actual TTL is longer.

Negative caching: "No such domain" answers are stored too

This is the point most guides skip. If you tried to open a new subdomain (for example panel.yourdomain.com) once before adding its DNS record, the resolver also caches the "this name does not exist" (NXDOMAIN) answer. How long this negative cache answer is kept is derived from the zone's SOA record according to the rules in RFC 2308. As a result, you may keep seeing a "site not found" error for a while even after adding the record. Microsoft also states explicitly in its documentation that ipconfig /flushdns can be used to discard negative cache entries of this kind.

When should you flush the DNS cache?

Flushing is not a maintenance task; it is done to fix a specific symptom. It helps in the following situations:

  • You changed the domain's nameservers or moved the site to a new hosting account, but the old site still opens on your computer.
  • You updated an A, AAAA or CNAME record; the new address shows up on another device but not on yours.
  • You get a DNS_PROBE_FINISHED_NXDOMAIN or ERR_NAME_NOT_RESOLVED error in Chrome. Chrome shows this error when the DNS lookup returns a "domain does not exist" answer or when resolution fails.
  • A subdomain you just added does not open for you (negative caching).
  • The site goes to the wrong server or to a page you did not expect.
SymptomCaused by DNS?What to do
Old site opens after a migrationMost likelyFlush the operating system and browser caches, then verify the result with Resolve-DnsName and nslookup
DNS_PROBE_FINISHED_NXDOMAINYesCheck the spelling of the domain and its DNS record, flush the cache, try a different resolver
New subdomain does not openYes (negative caching)Flush the cache and confirm that the record exists on the authoritative server
HTTP errors such as 404, 403 or 500Usually notThese are responses from the web server; however, if the response is coming from the old server after a migration, the problem is still the DNS cache. Check which IP the site is loading from with Resolve-DnsName
Note

If you see an HTTP error code, the domain has resolved to an IP address and your browser has reached a server. After a migration this error may be coming from the old server, so check which IP you are reaching first. If the IP belongs to the correct server, flushing the DNS cache will not change the result. Browser cookies, cached images and files (the page cache) and the CDN cache are entirely different things from the DNS cache.

How to flush the DNS cache on Windows 11

On Windows, the operating system cache is kept by the DNS Client service. The easiest and safest method is the ipconfig /flushdns command. Microsoft describes this command as one that "flushes and resets the contents of the DNS client resolver cache".

ipconfig /flushdns in Command Prompt or Terminal

  1. Open the Start menu and type cmd.
  2. In the Command Prompt result, click Run as administrator. Alternatively, right-click the Start button and choose Terminal (Admin).
  3. Click Yes in the User Account Control window.
  4. Type the following command and press Enter.
ipconfig /flushdns

When the operation succeeds, you will see the following output in the English interface:

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

On systems set to another display language, this text appears as a translation and the wording depends on the language pack. If your Windows display language is set to English, the ipconfig output will be in English as well.

If you run the command in a window without administrator rights, you may get the error "The requested operation requires elevation." In that case, close the window and open it again as administrator.

Windows 11 DNS flush commands: ipconfig /flushdns, ipconfig /displaydns, Clear-DnsClientCache, Get-DnsClientCache and the expected success message

Checking the cache with ipconfig /displaydns

To list the cache in Command Prompt, use ipconfig /displaydns. According to Microsoft's ipconfig documentation, this list includes entries preloaded from the Hosts file alongside recently resolved records. To avoid getting lost in a long list, you can filter the output by your domain name; the /i option ignores the difference between upper and lower case:

ipconfig /displaydns | findstr /i yourdomain

This command may also require an administrator window. If your domain still appears in the list right after flushing, it may have a line in the Hosts file (see the "Checking the Hosts file" section below), or an application running in the background may have looked up the name again. Microsoft's DNS client troubleshooting documentation notes that seeing "Name does not exist" under a name means a negative response from the DNS server has been cached on the client.

Clear-DnsClientCache in PowerShell

If you use PowerShell, the Clear-DnsClientCache command does the same job. Open PowerShell or Terminal with the Run as administrator option as well. Microsoft's Clear-DnsClientCache documentation states that this command is equivalent to ipconfig /flushdns.

Clear-DnsClientCache

This command produces no output. Not seeing a message on screen does not mean the operation failed. To see the contents of the cache, you can use the Get-DnsClientCache command:

Get-DnsClientCache
Get-DnsClientCache -Entry "www.yourdomain.com"

In the output, the TimeToLive column shows how many more seconds the record will stay in the cache, and the Status column shows the state of the answer. If the Status column shows NotExist (the name does not exist) or NoRecords (the name exists but has no record of this type), you are looking at a negative cache entry.

Last resort: ipconfig /release, /renew and netsh winsock reset

These commands are not needed to flush the DNS cache. They can be tried if the problem is not DNS but the network connection itself and the methods above have not worked. Do not run these two steps back to back in one go: first try renewing the IP configuration, and use the Winsock reset only if that does not help either.

Renewing the IP configuration

ipconfig /release
ipconfig /renew
  • ipconfig /release releases the IP configuration you received from the DHCP server. Your connection drops as soon as the command runs and does not come back until ipconfig /renew is run.
  • ipconfig /renew renews the DHCP configuration of adapters set to obtain an IP address automatically; in most cases the same address is assigned again.

Resetting the Winsock catalog

Use this command only as a last resort, and restart the computer afterwards:

netsh winsock reset

According to Microsoft's netsh winsock documentation, this command resets the Winsock catalog to a clean state and removes custom LSPs (Layered Service Providers; components that some VPN, proxy and security software add to network traffic).

Warning

If you run ipconfig /release on a server you are connected to over Remote Desktop (RDP), your connection will drop and you may not be able to get back into the server. netsh winsock reset can affect the network components of VPN, proxy or security software. Use these commands only on your local computer and only when other methods have not worked.

How to flush the DNS cache on a Mac

On macOS, DNS answers are cached by a system process called mDNSResponder. To flush DNS on a Mac, you use Terminal, and the operation requires administrator rights.

The Mac Terminal command to flush the DNS cache

  1. Open Terminal from the Applications > Utilities folder in Finder, or type "Terminal" in Spotlight.
  2. Paste the following command and press Return.
  3. When the "Password:" prompt appears, type the password you use to log in to your Mac and press Return; your account must have administrator rights.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

No characters or dots appear on screen while you type the password; this is not an error but the security behavior sudo applies when asking for a password. The command prints no message when it succeeds; a new command prompt appearing means the operation is complete.

The command has two parts. The killall -HUP mDNSResponder part is the command Apple gives for OS X 10.10.4 and later in its article on resetting the DNS cache. The dscacheutil -flushcache part at the beginning is an extra step that is widely recommended alongside it on current macOS versions. The same Apple article notes that restarting the Mac also refreshes the DNS information in the cache.

Mac DNS flush command: sudo dscacheutil -flushcache and sudo killall -HUP mDNSResponder in Terminal, with the Password prompt and silent output note

Commands by macOS version

Apple's article on this topic has been archived and is no longer updated. It only mentions OS X version names; the newest section is titled "OS X Yosemite and later" and contains the command for 10.10.4 and later. If you use an older Mac, the table below will help:

VersionCommandSource
Current macOS versionssudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderNon-Apple guides (common practice)
OS X 10.10.4 and latersudo killall -HUP mDNSResponderApple
OS X 10.10 – 10.10.3sudo discoveryutil mdnsflushcacheApple
OS X 10.7 – 10.9.5sudo killall -HUP mDNSResponderApple
OS X 10.6 – 10.6.8sudo dscacheutil -flushcacheApple

How to clear the browser DNS cache in Chrome, Edge and Firefox

Browsers can keep their own DNS caches independently of the operating system. That is why clearing the browser's DNS cache after flushing the system cache usually solves the most common "still the old site" problem.

BrowserAddressButton / action
Google Chromechrome://net-internals/#dnsClear host cache
Chrome (sockets)chrome://net-internals/#socketsFlush socket pools (may drop open connections)
Microsoft Edgeedge://net-internals/#dnsClear host cache
Mozilla Firefoxabout:networking#dnsClear DNS Cache

Table of browser DNS cache flush addresses and buttons for Chrome, Edge and Firefox: the net-internals and about:networking pages

How to clear the Chrome DNS cache

  1. Type chrome://net-internals/#dns in the address bar and press Enter.
  2. Click the Clear host cache button in the Host resolver cache section.
  3. Optionally, go to the chrome://net-internals/#sockets page and use "Close idle sockets" first, then "Flush socket pools" if needed.
  4. Close the browser completely and open it again.

This page is available in English only and shows no confirmation message after clearing. Clicking the button once is enough. Chromium shows a warning next to the "Flush socket pools" button that this action may break pages with active connections. You can also see the address the browser resolves from the DNS lookup field on the same page.

Tip

If the Use secure DNS setting (DNS over HTTPS) is turned on in Chrome or Edge with a specific provider selected, the browser asks that provider for domain names instead of the operating system's resolver. In that case ipconfig /flushdns may not change the result in the browser. Always do the Chrome DNS flush step as well; for testing, you can turn this setting off temporarily and compare the results. VPN apps may also use their own DNS servers.

How to clear the Edge DNS cache

Edge is based on Chromium, so it has the same internal page. Type edge://net-internals/#dns in the address bar, click the "Clear host cache" button, then flush the sockets from the edge://net-internals/#sockets page if needed and restart the browser.

How to clear the Firefox DNS cache

  1. Type about:networking#dns in the address bar.
  2. Click the Clear DNS Cache button in the DNS section.
  3. In the "DNS Lookup" section on the same page, you can type the domain name and click the "Resolve" button to check the current result.

This button was added in Firefox 79; forum posts that say otherwise refer to older versions.

DNS cache on Linux, Android and iPhone

Linux (systemd-resolved)

On distributions that use systemd-resolved, such as Ubuntu and Fedora, you can flush the cache with the first command below and check the result with the other two:

sudo resolvectl flush-caches
resolvectl statistics
resolvectl query yourdomain.com

resolvectl flush-caches also prints no output when it succeeds. You can tell whether the flush worked from the "Current Cache Size" line in the resolvectl statistics output. On systemd v254 and later there is also a resolvectl show-cache command to list the cache directly. The systemd-resolve --flush-caches form found in older guides is now deprecated. If your system uses another caching service such as nscd or dnsmasq instead of systemd-resolved, refer to that service's own restart method.

Android

Android has no user command to flush the system DNS cache. In practice, the following steps usually work:

  1. Turn airplane mode on for a few seconds and then off, or disconnect from Wi-Fi and reconnect.
  2. If the result does not change, restart the phone.
  3. In Chrome for Android, type chrome://net-internals/#dns in the address bar and tap the "Clear host cache" button.
  4. If you entered a provider hostname for Private DNS, the phone sends its queries to that provider; repeat the test with this setting set to Automatic or Off.

iPhone and iPad

iOS and iPadOS also have no separate command or button for the DNS cache. Turning airplane mode on and off, reconnecting to Wi-Fi or restarting the device usually works. If a VPN or DNS profile is installed, answers come from that service.

Router, internet service provider and public DNS resolver caches

Restarting the router

If your router caches DNS answers, flushing the computer may not be enough. Turn the router off, wait about half a minute and turn it back on. Do not perform a factory reset; it also erases settings such as the Wi-Fi password, internet connection details and port forwarding, and it is not needed to fix a DNS problem.

Why can't the provider's cache be cleared?

Your internet service provider's DNS server serves a large number of users and does not let end users delete its cache. You have two options at this layer: wait for the record's TTL to expire, or use a different resolver for testing. You can temporarily set your computer's DNS server to 1.1.1.1 or 8.8.8.8, or send queries directly to these servers with nslookup.

Refreshing public resolver caches

If you updated your DNS records recently, you can refresh the caches of these two resolvers with the public tools from Google and Cloudflare. These tools do not affect your provider's cache.

Google Public DNS: Flush Cache

  1. Open the Google Public DNS Flush Cache tool (the tool loads from dns.google/cache).
  2. Enter the domain name in the Domain Name field and the record type (for example A or MX) in the RR Type field.
  3. Complete the reCAPTCHA check and click the Flush Cache button.

According to Google's Public DNS FAQ page, you do not need to prove ownership of the domain, but you need to refresh each record type separately. If you changed your registrar or DNS hosting service, refresh the root domain first and then subdomains such as www. Internationalized domain names that contain non-ASCII characters must be entered in punycode form (starting with xn--).

Cloudflare 1.1.1.1: Purge Cache

Cloudflare's 1.1.1.1 FAQ page states that you can refresh a domain's records in the 1.1.1.1 cache with the Purge Cache tool. The tool is at one.one.one.one/purge-cache/. Type the domain name in the Domain Name field, choose the record type from the Record Type list and click the Purge Cache button. According to Cloudflare's 2018 announcement, 1.1.1.1 stores records for at most three hours (or for the TTL if it is shorter); this value may have changed over time.

How to check the result after flushing

You should verify the result by running queries, not by guessing. There are two different questions here: which answer is your computer using right now, and which answer are the DNS servers giving? These two questions are answered with different tools.

Important

nslookup does not use the Windows DNS client cache; it sends the query directly to the configured DNS server (Microsoft). It also ignores lines in the Hosts file. So nslookup shows the answer from the resolver and the authoritative server, not the answer your computer and browser are actually using.

Seeing the answer your computer uses

On Windows, the PowerShell Resolve-DnsName command uses the Windows resolver, including the cache and the Hosts file, when no -Server parameter is given:

Resolve-DnsName yourdomain.com
Resolve-DnsName yourdomain.com -Server 8.8.8.8

The first line shows the answer your computer is actually using; the second line asks 8.8.8.8 directly. If the two results differ, the old answer is in the local cache or the Hosts file. On macOS, you can see the answer the system sees with the dscacheutil -q host -a name yourdomain.com command.

Comparing DNS server answers with nslookup

  1. Get the answer from your own default resolver.
  2. Send the same query to 1.1.1.1 and 8.8.8.8.
  3. Find the domain's nameservers and ask the authoritative server directly.
  4. If the IP address on the authoritative server is the new address you expect, the problem is in the cache; if not, you need to fix the DNS record itself.
nslookup yourdomain.com
nslookup yourdomain.com 1.1.1.1
nslookup yourdomain.com 8.8.8.8
nslookup -type=NS yourdomain.com
nslookup yourdomain.com ns1.yourdomain.com

In the last line, replace ns1.yourdomain.com with the nameserver name shown by the previous command. According to Microsoft's nslookup documentation, the first parameter is the name to look up and the second parameter is the DNS server to query; if the second parameter is omitted, the default server is used. To see the IPv6 address, you can add -type=AAAA. If the response says "Non-existent domain" (written as "Nonexistent domain" in Microsoft's documentation), the queried server is reporting that the name does not exist; if you see "timed out", no answer was received from the server in time.

On macOS and Linux, you can make the same comparison with dig. Like nslookup, dig bypasses the system cache and asks the server directly:

dig +short yourdomain.com @1.1.1.1

If dig is not installed on Linux, it comes with the dnsutils or bind-utils package; alternatively, you can use resolvectl query. If you prefer not to use the command line, you can check your domain's records in the browser with our DNS lookup tool; this query is independent of your own computer's cache.

You flushed the DNS cache but the problem persists

If the old site still opens after flushing, or the site does not open at all, run the following checks in order. They are ordered from the simplest to the most advanced.

Six checks to run if the problem persists after flushing the DNS cache: nslookup, browser, Hosts file, modem, another DNS resolver and TTL

  1. Compare the answers: Compare the answer your computer uses (Resolve-DnsName) with the answers from your default resolver, 1.1.1.1 and 8.8.8.8 (nslookup).
  2. Clear the browser cache too: Use the Clear host cache or Clear DNS Cache button, then close the browser completely and reopen it.
  3. Check the Hosts file: A line there overrides DNS completely (details below).
  4. Restart the router: This also clears the DNS cache on the router.
  5. Try a different DNS resolver: If you changed your DNS records recently, use Google's Flush Cache and Cloudflare's Purge Cache tools; refresh the root domain first, then the www address.
  6. Wait for the TTL and check your VPN and security software: The provider cache is only refreshed when the TTL expires. If there is still a problem, you can run ipconfig /release and ipconfig /renew, and as a last resort netsh winsock reset followed by a restart.

If the site does not open from any device, the problem is most likely not in the cache but in the DNS record or on the server. In that case, continue with the steps in our "This site can't be reached" error guide.

Checking the Hosts file

Adding a line to the Hosts file to test the new server before migrating a site is a common method. If this line is forgotten after the migration, your computer keeps going to that address without asking DNS at all. Because Hosts entries are read from the file, flushing the cache does not remove these lines; you need to edit the file.

Always make a copy of the file before changing it. The file is located at:

  • Windows: C:\Windows\System32\drivers\etc\hosts (edit it by opening Notepad as administrator)
  • macOS and Linux: /etc/hosts (edit it with sudo)
# Example line left over from a migration test that should be removed
203.0.113.10    yourdomain.com www.yourdomain.com

You can delete the line or disable it by putting # at the beginning. After saving the file, flush the cache again.

The right order after a hosting or DNS change

The situation hosting customers run into most often happens in the first hours after pointing a domain to a new server. Following this order prevents unnecessary waiting and misdiagnosis:

  1. Before the change, take a screenshot or export of your current DNS records so you can return to the old records if needed.
  2. If possible, lower the TTL of the relevant record (for example to 300 seconds) at least as long before the change as the old TTL.
  3. Make the nameserver or A record change. You can find the steps in our how to point a domain to hosting guide.
  4. Confirm that the new record is really live by asking the authoritative server with nslookup.
  5. On your own computer, flush the operating system and browser caches and check the result with Resolve-DnsName.
  6. If needed, refresh the public resolvers with the Google and Cloudflare tools, and wait for the TTL to expire for the provider cache.
  7. If you changed your email records, check the MX record separately. You can find the details in our what is an MX record guide.
Important

Lowering the TTL only helps if it is done before the change. Lowering the TTL after changing the record does not affect resolvers that have already received the old answer with its long TTL. If you are an Oweb customer and are not sure your records are correct, you can open a support ticket and share your nslookup and Resolve-DnsName output.

Frequently asked questions

Is flushing the DNS cache harmful?

No. Flushing only deletes temporarily stored DNS answers. It does not touch your files, saved passwords, cookies or browser history. The deleted entries are created again automatically when you revisit the sites. The only difference is the very short extra time it takes to resolve the name again on the first visit.

Does flushing the DNS cache speed up the internet?

No. The cache exists to speed up lookups in the first place; flushing it slightly slows down the first requests. The purpose of flushing is not speed but getting rid of an old or incorrect answer. If your internet is slow in general, look for the problem in your connection, router or provider.

How often should the DNS cache be flushed?

There is no need for a regular flushing schedule. Flush it only when you have a problem, for example when the old site opens after a DNS record change or when you get an error such as DNS_PROBE_FINISHED_NXDOMAIN.

How do I know the DNS cache has been flushed?

On Windows, list the cache with ipconfig /displaydns in an administrator window or with Get-DnsClientCache in PowerShell; if your domain is not in the Hosts file, it should not appear in the list right after flushing. Then compare the IP your computer uses (Resolve-DnsName yourdomain.com) with the IP the servers return (nslookup yourdomain.com 8.8.8.8).

What is the difference between ipconfig /flushdns and Clear-DnsClientCache?

Both clear the same cache; Microsoft describes the PowerShell command as equivalent to ipconfig /flushdns. The difference is in the interface: ipconfig prints a success message, while Clear-DnsClientCache runs silently. If you use Command Prompt, ipconfig is more practical; if you write PowerShell scripts, Clear-DnsClientCache is.

What should I do if Chrome still shows the old address after chrome://net-internals/#dns?

First flush the operating system cache as well, then click "Flush socket pools" on the chrome://net-internals/#sockets page and close and reopen Chrome completely. If the Use secure DNS setting is tied to a specific provider or a VPN is on, queries go to a different resolver; repeat the test with this setting turned off.

Can the internet service provider's DNS cache be cleared?

No, end users cannot clear the provider's resolver cache. When the record's TTL expires, the provider fetches the new answer on its own. If you do not want to wait, you can temporarily set your computer's DNS server to 1.1.1.1 or 8.8.8.8 and refresh the caches of these two resolvers with the Purge Cache and Flush Cache tools.

Is netsh winsock reset safe?

The command is Windows' own tool and does not delete your files, but because it removes custom LSPs, some VPN, proxy or security software may need to be reinstalled. It is not needed for DNS cache problems. Run it only on your local computer when other steps have not worked, and restart the computer afterwards.

Is restarting the computer enough?

A restart also refreshes the operating system cache and the browser's in-memory DNS records; Apple states this explicitly for the Mac. However, it does not affect the caches of the router, the internet service provider or public resolvers, and it does not remove lines from the Hosts file. Flushing with a command is faster and does not require you to close your open work.

Why does the old site still open even though I flushed the cache?

Another layer is probably still holding the old answer: the browser, the router, the Hosts file or the internet service provider's resolver. Compare the answer your computer uses (Resolve-DnsName) with the answers from 8.8.8.8 and 1.1.1.1 (nslookup). If the public resolvers show the new address but your default server does not, you need to wait for the provider cache's TTL to expire.

How do I flush the DNS cache on a phone?

Android and iPhone have no command for this. Turning airplane mode on and off, reconnecting to Wi-Fi or restarting the phone usually works. If you use Chrome on Android, you can also clear the browser cache with the "Clear host cache" button on the chrome://net-internals/#dns page.

Conclusion

Flushing the DNS cache is a safe operation that takes a few seconds, but it only helps when it is done at the right layer. First make sure the problem is really caused by DNS, then flush the operating system cache (ipconfig /flushdns or the Terminal command on macOS) and the browser cache. Next, compare the answer your computer uses (Resolve-DnsName) with the answers from public resolvers and the authoritative server (nslookup). If the result is still old, check the Hosts file, the router and the TTL; for the internet service provider's cache, the only options are to wait or to use a different resolver. If anything about your records is unclear, you can ask the Oweb support team for help.

Was this article helpful?

Couldn't find what you were looking for?

Our technical team usually answers within minutes, around the clock.


Your Feedback is Valuable Join Our Survey
Customer Service0 (850) 303 31 32 Email[email protected] WhatsApp SupportMessage us now
English
₺ TRY