Support Center / How to flush DNS cache on Windows, Mac and Linux

How to flush DNS cache on Windows, Mac and Linux

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.


Open CMD with administrator rights.

Type this in the new window:

 ipconfig /flushdns


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


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 instead.

Now please reconnect to the VPN server and check whether your online information is displayed correctly on


your internet

Get Proton VPN
Get Proton VPN

Contact us

Support form

Tell us about the problem and we'll get back to you as soon as we can.

Open support form

Live chat

Get help from a support agent in real time. Available with a paid VPN subscription.

Chat with us

Secure email

Send us an encrypted message at It may take us longer to respond.

Email us