How to flush DNS cache on Windows, Mac and Linux

Reading
1 min
Category
Connection

This article covers ways on flushing your DNS cache on different operating systems in case your online information like DNS does not seem to change after connecting to the VPN server.

Windows

Open CMD with administrator rights.

Type this in the new window:

 ipconfig /flushdns


macOS

Please open Terminal first.

According to your operating system version, type in these commands and enter root(user account) password to flush DNS cache.

OS X 12 (Sierra) and later

sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache

OS X 11 (El Capitan) and OS X 12 (Sierra)

sudo killall -HUP mDNSResponder

OS X 10.10 (Yosemite)

Versions 10.10.4+

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

Versions 10.10.1, 10.10.2, 10.10.3

sudo discoveryutil udnsflushcaches


Linux

The instructions for flushing your DNS cache vary from distro to distro. Please check your distro’s documentation for more information. Many distros, including Ubuntu 17.04+ and Fedora 33, do not use a DNS cache by default. In such cases, it might be worth flushing your browser’s cache(new window) instead.

Now please reconnect to the VPN server and check whether your online information is displayed correctly on ipleak.net(new window)

 

Didn’t find what you were looking for?

General contactcontact@proton.me
Media contactmedia@proton.me
Legal contactlegal@proton.me
Partnerships contactpartners@proton.me