X
X
Worldwide (English) GBP 0

Welcome

Sign in

How to Clear the DNS Cache on a MacBook

HomepageArticlesHow to Clear the DNS Cache on a MacBook

This article was originally published in Turkish on and migrated from our previous website. This English version translates the archived article. Promotions, prices, product features, roles and service availability are historical information, not current offers or guarantees.

Contents

Introduction

Internet use has become part of almost everyone’s daily life. Sometimes connection problems occur, and some relate to DNS (Domain Name System). This article explains step by step how MacBook users can clear their DNS cache.

What Is DNS?

DNS translates domain names into IP addresses. When you visit a website, for example, your browser asks a DNS server for its IP address. This system is essential to the internet’s proper operation.

What Is the DNS Cache?

The DNS cache temporarily stores the IP addresses of websites you have visited, making repeat connections faster. Over time, however, outdated information may accumulate and cause connection problems.

Why Clearing the Cache Matters

Clearing the DNS cache is one of the most effective ways to resolve connection problems. Old or incorrect records may cause delays or errors when accessing websites. Regular clearing may therefore improve your internet experience.

How to Clear It on a MacBook

The process is simple:

  1. Open Finder and go to Applications.
  2. Open the Utilities folder.
  3. Launch Terminal.
  4. Enter sudo killall -HUP mDNSResponder and press Enter.
  5. Enter your password and confirm.

After these steps, your DNS cache will be cleared.

Using Terminal

Using Terminal is one of the most common methods for MacBook users. Open Terminal and run the command above. This method is particularly quick and effective for users with technical knowledge.

Checking Afterward

Check your internet connection after clearing the cache. Try accessing a website to see whether the connection works properly. If problems persist, consider a different DNS server.

Common Problems and Solutions

Some users may still encounter:

  • Website-access problems
  • Connection delays
  • DNS-server errors

Check your DNS settings and use another DNS server if needed.

Alternative DNS Settings

Besides clearing the cache, alternative DNS servers may improve your experience. Popular choices include Google DNS (8.8.8.8 and 8.8.4.4) and Cloudflare DNS (1.1.1.1). These servers generally provide faster and more reliable connections.

Frequently Asked Questions

What is the DNS cache?

A memory area temporarily storing the IP addresses of previously visited websites.

How do I clear it on a MacBook?

Open Terminal and run sudo killall -HUP mDNSResponder.

When should I clear it?

Regular clearing is useful for preventing connection problems.

What should I do afterward?

Check your internet connection.

What alternative servers are available?

Popular alternatives include Google DNS (8.8.8.8) and Cloudflare DNS (1.1.1.1).

What are the benefits?

Removing old or incorrect records may increase connection speed and solve problems.

How do I change DNS settings?

Use System Preferences > Network > Advanced > DNS.

Is clearing the cache safe?

Yes, it is completely safe and may improve your experience.

What if problems persist?

Try a different DNS server or contact your internet service provider.

Can I clear it without Terminal?

Yes, some third-party applications can clear the cache.

Clearing the DNS cache on a MacBook is an important step toward improving your internet experience. Follow the steps above to do it easily. Remember that regular clearing will reduce connection problems.

Copyright © 2026 All Rights Reserved
Top