{"/api/v1/ncpl/currencies/getAll":{"body":[{"Name":"U.S. Dollar","Code":"USD","Symbol":"$","Separator":".","Culture":"en-US"},{"Name":"Euro","Code":"EUR","Symbol":"€","Separator":",","Culture":"en-US"},{"Name":"British Pound","Code":"GBP","Symbol":"£","Separator":".","Culture":"en-US"},{"Name":"Canadian Dollars","Code":"CAD","Symbol":"C$","Separator":".","Culture":"en-US"},{"Name":"Australian Dollars","Code":"AUD","Symbol":"A$","Separator":".","Culture":"en-US"},{"Name":"Indian Rupees","Code":"INR","Symbol":"Rs","Separator":".","Culture":"en-US"},{"Name":"China Yuan RMB","Code":"CNY","Symbol":"¥","Separator":".","Culture":"en-US"}],"status":200,"statusText":"OK"},"/api/v1/ncpl/usermanagement/uiuser/getHeaderUserInfo:\"{\\\"hideSupportPin\\\":true}\"":{"body":{"__ctxId":"50EBE0DF78164AF0A42389B922C34D10","__isError":true,"__errorType":"Nc.Platform.Abstractions.UnauthorizedException","Http_WWW_Authenticate":"Bearer","StatusCode":"Unauthorized","LogLevel":3,"Message":"","InnerException":null,"HelpLink":null,"Source":"Nc.Security.Middleware"},"status":401,"statusText":"Unauthorized"},"/api/v1/ncpl/cart/user/getShoppingCartSummary:\"{\\\"finalTotalOnly\\\":true}\"":{"body":null,"status":200,"statusText":"OK"}}

How to clear local DNS cache

This guide describes how to clear local DNS cache on different operating systems:

Mac OS
Windows

Linux


Mac OS

1. Open the Terminal.app, either by starting typing Terminal on the Spotlight or by going into Applications.

2. Go to Utilities and click Terminal:



3. Run one of the following commands depending on the MacOS version you're using and press Enter, then type your user password when prompted:

OS versionCommand to clear cache
OS X Yosemite
OS X El Capitan
MacOS Sierra and High Sierra
MacOS Mojave

sudo killall -HUP mDNSResponder

or

sudo killall -HUP mDNSResponder; say DNS cache flushed

MacOS Catalinasudo killall -HUP mDNSResponder;
MacOS Big Sur
MacOS Monterey
MacOS Sonoma 
MacOS Sequoia
MacOS Tahoe
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder



Windows OS

Below you can find instructions on how to clear local DNS cache on different versions of Windows OS.


1. Click on the Start button .

2. Click All Programs > Accessories > right-click on Command Prompt and choose Run as Administrator:



3. In the Command Prompt window type in ipconfig /flushdns and press Enter:



4. Once done, you will see the following message: Successfully flushed the DNS Resolver Cache.



The Flush DNS command on Windows 8/10 is the same as on Windows 7 and Vista, the difference is only in how to open the command prompt.

1. Press the Start button > Applications > type Command prompt in the search bar:



2. In the Command Prompt window type in ipconfig /flushdns and press Enter:



3. After the cache is cleared, you will get the following message: Successfully flushed the DNS Resolver Cache.


1. Press the Start button > Applications > type Command Prompt in the search bar:



2. In the Command Prompt window, type in ipconfig /flushdns and press Enter:



3.After the cache is cleared, you will get the following message: Successfully flushed the DNS Resolver Cache.


Linux OS

Different Linux distributions use different DNS resolvers (e.g., systemd-resolved, nscd, dnsmasq, or NetworkManager).

To check which DNS service your system uses, run the following command in your favorite terminal/shell application:

ps aux | grep -E "systemd-resolved|nscd|dnsmasq"

You will see the name of the DNS resolver used on your Linux system in the output of this command. It may be systemd-resolved, nscd, or dnsmasq.

If none of those appear, your system might rely on NetworkManager or your browser’s DNS cache.

After you know which DNS resolver is used in your system, choose the correct command for clearing a local DNS cache for this resolver:

ResolverCommand to clear cache
systemd-resolvedsudo systemd-resolve --flush-caches
resolvectlsudo resolvectl flush-caches
nscdsudo systemctl restart nscd
dnsmasq
sudo systemctl restart dnsmasq
NetworkManager
NetworkManager sudo systemctl restart NetworkManager


You can check if the cache was flushed successfully using this command:

$ sudo systemd-resolve --statistics



If you see a zero by the Current Cache Size, you have successfully flushed your system's cache.


That's it!

              
                      Need any help? Contact our HelpDesk

Updated
Viewed
110304 times
{}

Need help? We're always here for you.

notmyip