Как посмотреть кэш dns windows

Download Windows Speedup Tool to fix errors and make PC run faster

In this post, we will show you how to view the DNS cache contents in Windows 11/10. DNS cache refers to the temporary storage of information about previous DNS lookups on a machine’s OS or web browser.

View DNS cache contents cmd

The DNS cache contains a list of remote server names and the IP addresses (if any) they correspond to. Entries in this cache come from DNS lookups that happen when attempting to visit Web sites, named FTP servers, and other remote hosts. Windows uses this cache to improve the performance of Web-based applications.

Using Command Prompt

To view the DNC cache contents, execute the following command in an elevated CMD:

ipconfig /displaydns

The results will be displayed.

  • Record name is the name you query DNS for, and the records belong to that name.
  • Record type is the type, displayed as a number or name. In the DNS protocol, each has a number.
  • Time To Live is the time in seconds after which the cache entry must expire.
  • Data Length is the length in bytes, eg- An IPv4 address is 4 bytes; IPv6 is 16 bytes.
  • Section of a DNS reply is the actual answer to the query,
  • Additional contains information that will likely be needed to find the actual answer.
  • CNAME is the canonical name.

If you wish to export the results, you can use the command ipconfig /displaydns > dnscachecontents.txt to save the output in the text document dnscachecontents.txt.

Using PowerShell

If you wish to get you the same information as a collection of DNS record objects which can easily be exported or saved in a database, run the following cmdlet in PowerShell:

Get-DnsClientCache

This command will list the Help information:

Help Get-DnsClientCache -full

You can also use the following command to get better formatting:

Get-DnsClientCache | Format-Table -AutoSize

How to clear the DNS cache

You can use the command to flush DNS Cache in the command prompt:

ipconfig /flushdns

Our freeware FixWin for Windows, let you flush the DNS cache, etc., in a click.

Turn Off or Turn On DNS Cache

To turn off DNS caching for a particular session, type net stop dnscache and hit Enter.

To turn on DNS caching, type net start dnscache and hit Enter.

Of course, when you restart the computer, the DNC caching will, in any case, be turned on.

Disable DNS Cache

If for some reason you wish to disable DNS caching, type services in Start search and hit Enter to open the Services Manager. Here locate the DNS Client service.

The DNS Client service (dnscache) caches Domain Name System (DNS) names and registers the full computer name for this computer. If the service is stopped, DNS names will continue to be resolved. However, the results of DNS name queries will not be cached and the computer’s name will not be registered. If the service is disabled, any services that explicitly depend on it will fail to start.

Double-click on it to open its Properties box. Here change its startup type from Manual to Disabled. If you disable the DNS Client service, DNS Lookups may take longer.

These resources may also interest you:

  1. How to change DNS settings in Windows
  2. Manage web browsing speed by changing DNS settings
  3. Check if your DNS settings have been compromised.

Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP (2016-2022). Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

The Windows operating system uses a cache for DNS entries. DNS (Domain Name System) is a core technology of the Internet that is being used for communication. In particular, it is used to lookup IP addresses of domain names.

When users type a domain name in the browser, one of the first tasks that is executed when the site is loaded is to look up its IP address. The process requires access to DNS servers. Often, DNS servers of the Internet Service Provider are used automatically, but administrators may switch to other DNS servers, as these may be faster or offer better privacy.

Switching DNS providers may also help bypass Internet censorship, if DNS is used to block access to certain sites.

Windows uses the DNS resolver cache to speed up lookups. Each DNS lookup is added to the cache to speed up consecutive visits to the domains. Sometimes, entries may become old and may point to the wrong IP address. Our guide on fixing resolving host issues in browsers is still valid up to this day.  Flushing the cache may help with that, as it removes all cached items to start from scratch.

Tip: you may use the free software DNSLookupView to log all DNS activity on Windows.

Display all cached DNS entries

ipconfig dns

The list of  cached entries can be useful for a number of purposes. Webmasters and developers may check if the correct IP address is assigned to a property, and users may be interested in seeing all entries, e.g., to find out which domains have been accessed during a session.

  1. Open the run box with the shortcut Windows-R.
  2. Type cmd.exe and hit the Enter-key.
  3. Type ipconfig /displayDNS to run the command.

Windows returns all cached DNS entries in a long list. You may also redirect the output to a plain text file by running the command ipconfig /displayDNS > %USERPROFILE%\Desktop\dns.txt. This saves the output to the file dns.txt on the desktop.

The very same command can also be run using PowerShell:

  1. Open Start, type PowerShell and select the result. If you have Terminal installed, type Terminal instead and select that result.
  2. Run the command powershell «Get-DnsClientCache | Format-Table -AutoSize».

The output uses better formatting. You may redirect the output to a text file as well using the command  powershell «Get-DnsClientCache | Format-Table -AutoSize» >%USERPROFILE%\Desktop\DNS.txt.

To flush the DNS cache, run the command ipconfig /flushdns. Check out this guide if you are getting the error Could not flush the DNS Resolver.

Now You: which DNS provider do you use? (via Eleven Forum)

Summary

Article Name

How to display all cached DNS entries on Windows

Description

Find out how to display all DNS entries that have been cached by the Windows operating system.

Author

Martin Brinkmann

Publisher

Ghacks Technology News

Logo

Advertisement

Table of contents

  • What Is the DNS Cache?
    • How to Check DNS Cache on Windows 10
    • Method 1: Via Command Prompt
    • Method 2: Via PowerShell
  • Why Clear DNS Cache?
  • Is It Safe to Flush the DNS Cache?
  • How to Clear DNS Cache
    • Method 1: Clear DNS Cache using Command Prompt
    • Method 2: Clear DNS Cache using Windows PowerShell
  • How to Disable DNS Cache in Windows 10
  • How to View DNS Cache on Windows 11?
  • Extra Tip: Always Protect Your Privacy
  • Conclusion
  • FAQ

Do you want to learn how to view DNS cache in Windows 10? If so, this tutorial is for you. On a Windows 10 PC, there are several methods you can use to display the DNS contents. First, here’s a summary of what the DNS cache means.

What Is the DNS Cache?

DNS (Domain Name System) cache, sometimes referred to as DNS Resolver Cache, is a temporary storage of information maintained by your computer.

It contains records of all the recently visited websites and their IP addresses.

It serves as a database that keeps a copy of a DNS lookup locally stored on your browser or operating system. Your computer can quickly refer to it when you load a website.

The DNS cache is like a phonebook that stores an index of all public websites and their IP addresses.

Its main purpose is to speed up a request to load a website by handling name resolution of addresses you recently visited before the request is sent out to many public DNS servers.

Since the information is available locally, the process is much quicker.

How to Check DNS Cache on Windows 10

As noted earlier, various ways exist to display the DNS cache on Windows 10. This can be useful if you want to diagnose DNS issues, for example, where an invalid or out-of-date DNS record might be cached.

Method 1: Via Command Prompt

To display the contents of the DNS cache, you need to execute the following command in an elevated Command Prompt:

  • Press the Windows + S shortcut keys and type in cmd.
  • Click on Run as administrator on the right pane.

Run Command Prompt As Administrator

  • On the Command Prompt window, type the following command and press Enter:
    ipconfig /displaydns

Upon execution of the command, the following results will be displayed:

  • Record Name – This is the name you query the DNS for and the records, such as addresses that belong to that name.
  • Record Type – This refers to the type of entry, displayed as a number (although they are commonly referred to by their names). Each DNS protocol has a number.
  • Time to Live (TTL) – This value describes how long a cache entry is valid, displayed in seconds.
  • Data Length – This describes the length in bytes. For instance, the IPv4 address is four bytes, and the IPv6 address is 16 bytes.
  • Section – This is the answer to the query.
  • CNAME Record – This is the canonical name record.

You can export the results of the DNS cache using this command:

ipconfig /displaydns > dnscachecontents.txt

This will save the output in the text document, dnscachecontents.txt.


Also Read: [FIXED] Server DNS address could not be found on Windows 10/11


Method 2: Via PowerShell

You can view the DNS cache using Windows PowerShell. And like in Command Prompt, you can also export or save the database. Here’s the procedure:

  • Press the Windows + X keyboard shortcut and select Windows PowerShell Admin. Alternatively, if you can’t find that option, press the Windows + S shortcut keys, type in PowerShell, and select Run as Administrator on the right pane.

Type in <em>PowerShell,</em> and select <em>Run as Administrator</em> on the right pane» src=»https://www.auslogics.com/en/articles/wp-content/uploads/2023/09/Windows-Powershell-Run-as-Administrator-1.webp»></p>
<div class= Картинка с сайта: www.auslogics.com

  • Next, input the command Get-DnsClientCache, and press Enter.
  • Use the Get-Help cmdlet to get more information:
    Help Get-DnsClientCache –full

Why Clear DNS Cache?

When you run into Internet connectivity issues, flushing or clearing the DNS cache usually resolves the problem. You may want to clear your DNS cache for a varied number of reasons, including:

  • When attempting to troubleshoot connectivity issues, where you have difficulty accessing websites and applications: If the domain name in the cache has an incorrect or invalid IP address, the website won’t be able to return the correct information. If you clear your browser history, the DNS cache will still contain the old corrupt details. Flushing helps to get the DNS to update the results.
  • When attempting to troubleshoot or resolve DNS spoofing or DNS cache poisoning issues: Cybercriminals may try to access the cache and insert or change the IP address to redirect you to a website designed to gather sensitive data like passwords and banking details. Clearing the DNS cache prevents this.
  • Protecting your privacy: Although the DNS cache does not contain personal data like cookies or JavaScript, it retains a history of addresses you’ve visited recently and those you visit frequently. Such information can be dangerous in the hands of a skilled hacker. By clearing the DNS cache, you erase your address history, making it less likely for a hacker to track your online behavior.
  • Resolving stale or outdated information about visited sites: An example here would be if a website has moved servers.

Also Read: Boost Internet on Your PC: Tips on How to Speed Up Your Internet Connection


Is It Safe to Flush the DNS Cache?

It is important to note that flushing the DNS cache doesn’t negatively impact your system. DNS cache ensures quick access to websites, and when you clear it the first time you visit a website, it may take longer than usual to load. But afterwards, the results will be quicker again.


Related: How to Delete Temporary Internet Files?


How to Clear DNS Cache

To clear the DNS cache, you can use a command line or Windows PowerShell for whatever reason.

Method 1: Clear DNS Cache using Command Prompt

  • Press the Windows Key + S, and type CMD.
  • Choose the Run as administrator option in the right pane.

Run Command Prompt As Administrator

  • Type the following command in the prompt and hit Enter:

ipconfig/flushdns

That’s it! You should get a notification indicating the cache has been successfully flushed.

If the issue is on the server instead of the local machine, you can still use Command Prompt to clear the DNS cache, but with a different command. In that case, the command would be:

dnscmd /clearcache

Method 2: Clear DNS Cache using Windows PowerShell

You can also flush the DNS cache using Windows PowerShell. Depending on the type of cache you want to clear, you have a few options to implement:

  • To clear the local DNS server cache, use the command line:

Clear-DnsServerCache

  • To clear the client cache, use this command:

Clear-DnsClientCache

How to Disable DNS Cache in Windows 10

If, for any reason, you wish to disable the DNS cache on your Windows 10 PC, you can use the “Service Controller” tool to stop the service:

  • Press the Win + R keys, type in services.msc, and press Enter or click OK.

Running services.msc in the Run dialog box

  • Locate the DNS Client service (or Dnscache on some computers) and double-click it to open its Properties.
  • Change the Startup Type to Disabled.
  • To re-enable the service, repeat the steps above and change the Startup Type to Automatic.

Alternatively, you can deactivate the DNS Client using Windows System Configuration:

  • Press the Win + R keys, type in msconfigin the Run dialog box, and hit Enter or click OK.

Running msconfig in Run dialog box

  • Move to the Services tab and find DNS Client.
  • Uncheck the box next to the service and click Apply > OK.
  • To re-enable the service, repeat the steps above and tick the checkbox again.

Keep in mind that disabling this service will affect your computer’s overall performance. The network traffic for DNS queries will increase, so websites will load much slower than normal.

How to View DNS Cache on Windows 11?

Windows 11 has several substantial upgrades: performance optimization, bug fixes, new Taskbar and Start Menu placements, and more.

However, regarding basic functionality, Windows 11 works like Windows 10.

If you are trying to view the DNS cache on Windows 11, you can use the methods mentioned above for Windows 10.

Namely, you can view the cache by running elevated Command Prompt or via Windows Powershell — simply go through the steps for both methods described above.

If you are looking to clear the DNS cache on Windows 11, you can also follow the same steps as listed above for Windows 10. You can clear the cache by running a command in Command Prompt.

Clear the cache by running a command in Command Prompt

You can also do the same via Windows PowerShell.

Clear the cache by running a command in Windows PowerShell

Follow the steps above to Clear the DNS Cache on Windows 10. You can also follow the same steps to re-enable the service.

Please note that if you decide to disable the DNS cache on Windows 11, your system’s overall performance will be affected.

The traffic for DNS queries will substantially increase, and you will notice that many of the websites you visit frequently take much longer to load.

If you choose to disable the DNS cache on your PC, you will also lose the option to view the cache if you need to diagnose an issue on your system.

In 2022, a staggering 493 million ransomware attacks were detected worldwide, with phishing attacks still remaining the most common type of cybersecurity threat. Globally, the average damages associated with data breaches amounted to $4.35 million in 2022. These are scary facts  – but they are a good illustration of why you should always protect your privacy.  While clearing the DNS cache is important for protecting your privacy and preventing instances of hacking, it won’t remove all traces of sensitive information. These details include activity history, login details, profile data, and traces of visits to adult websites. Even if you didn’t open them knowingly, you might have been redirected without your knowledge. To effectively remove such sensitive data and protect your privacy, you need a reliable program like Auslogics BoostSpeed. The tool helps to clear any kind of confidential information that you wouldn’t want anyone to find.  BoostSpeed has all the functionality you might need to keep your PC performing at optimal speeds and protect privacy. You will especially find the features under the “Browser Protect” tab quite useful.

Auslogics BoostSpeed 13 browser protection

Apart from clearing traces of your activities in your web browsers, system files, and applications, there is also an option to protect your DNS from unauthorized changes.

This way, you won’t be worried about DNS spoofing, where attackers alter your DNS records to redirect traffic to fraudulent websites.

Auslogics BoostSpeed 13 DNS protection

If you enable Active Browser AntiTracker, your browsing data will be cleared after every browsing session, safeguarding your privacy. 

Auslogics BoostSpeed 13 Antitracker

We recommend cleaning up your PC regularly, depending on your usage. Since it’s easy to forget to run maintenance, you can activate an automated scan and choose how often you want the scan to run.

Download Auslogics BoostSpeed

Your one-stop PC maintenance and optimization tool, this program will clean, speed up, repair and tweak your system to ensure maximum speed and efficiency.


Also Read: Tricks to Get the Most out of Auslogics BoostSpeed Free Trial


Conclusion

Managing your DNS cache on Windows 10/11 is a straightforward process that can improve your internet experience.

Viewing the cache lets you see which domain names have been resolved recently. Clearing it can help resolve connectivity issues, ensure privacy, and keep your system up-to-date.

Following the simple steps outlined in this guide, you can easily view and clear your DNS cache, ensuring a smoother and more secure online experience.

FAQ

How to check DNS settings in Windows 10?

To check your DNS settings in Windows 10, follow these steps:

  • Right-click on the Start button and select Network Connections or Network & Internet Settings.
  • Click on Change adapter options.
  • Right-click on your active network connection and choose Properties.
  • Scroll down and find Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) depending on your network.
  • Click Properties to view and edit your DNS settings.

Where are the DNS address resolutions stored?

DNS address resolutions are stored in your operating system’s DNS cache. In Windows, you can view and manage this cache using the Command Prompt or PowerShell with commands like ipconfig /displaydns or Clear-DnsClientCache.

What information is kept in the DNS resolver cache?

The DNS Resolver Cache stores information related to domain name resolutions, including the domain names and their corresponding IP addresses.

It may also contain information about recent network connections and domain-related settings.

How long does DNS cache last?

The duration for which DNS cache entries last can vary. DNS records have a time-to-live (TTL) value, set by the domain’s authoritative DNS server.

Cache entries typically expire when the TTL value reaches zero, or when the cache is manually cleared. Common TTL values range from a few minutes to several days, depending on the domain and its configuration.

Загрузить PDF

Загрузить PDF

Содержимое DNS-кэша можно просмотреть с помощью командной строки (в Windows) или терминала (в Mac OS X). Этот кэш можно очистить посредством ряда команд или через автономный режим на мобильном устройстве. В DNS-кэше содержится информация о сайтах, которые вы посещали, но любая ошибка в этом кэше может привести к тому, что такие сайты открываться не будут. Просмотрите и очистите DNS-кэш, чтобы исправить ошибки.

  1. Step 1 Закройте все приложения, чтобы подготовиться к очистке кэша.

    На мобильном устройстве нельзя просмотреть содержимое DNS-кэша, но его можно очистить, чтобы устранить соответствующие ошибки.

    • Обязательно закройте веб-браузеры.
  2. Step 2 Откройте приложение «Настройки».

    Прокрутите вниз и найдите раздел «Wi-Fi».

    • На Android-устройстве найдите раздел «Беспроводные сети».
  3. Step 3 Щелкните по «Wi-Fi», а затем передвиньте ползунок у «Wi-Fi» влево.

    Дождитесь, когда в верхнем левом углу телефона появится значок передачи данных по сотовой сети.

    • На Android-устройстве щелкните по ползунку у «Wi-Fi», чтобы отключить беспроводное соединение.
  4. Step 4 Еще раз передвиньте или щелкните по ползунку у «Wi-Fi».

    Дождитесь, когда появится значок беспроводной сети, а затем вернитесь в приложение «Настройки».

  5. Step 5 Активируйте автономный режим (режим полета), а затем выключите его.

    Найдите опцию «Режим полета» в верхней части приложения «Настройки» на iPhone. Подождите несколько минут (значок беспроводной сети в верхнем левом углу экрана должен исчезнуть), а затем выключите режим полета. Так вы сбросите настройки сети, а DNS-кэш будет очищен.

    • На Android-устройстве в приложении «Настройки» нажмите «Еще» > «Режим полета».
  6. Step 6 Зажмите кнопку «Режим...

    Зажмите кнопку «Режим сна/Пробуждение», а затем на экране проведите по кнопке «Выключить» вправо. Смартфон выключится, а DNS-кэш будет очищен. Включите устройство через 15 секунд.

    • На Android-устройстве зажмите кнопку питания, а затем на экране нажмите «Выключить».
  7. Step 7 Включите смартфон.

    Для этого зажмите кнопку «Режим сна/Пробуждение» или кнопку питания.

  8. Step 8 Убедитесь, что DNS-кэш был очищен.

    Запустите веб-браузер и попробуйте открыть сайт, который до этого не загружался. Теперь вы получите доступ к сайту!

    • Когда вы очистите DNS-кэш, первая загрузка любого сайта будет длиться дольше, чем обычно, потому что кэш будет обновляться.

    Реклама

  1. Step 1 Откройте меню «Пуск» и нажмите «Все приложения».

    • В других версиях Windows нажмите «Все программы» > «Стандартные».
  2. Step 2 Нажмите «Система Windows».

  3. Step 3 Щелкните правой кнопкой...

    Щелкните правой кнопкой мыши по «Командная строка» и в меню выберите «Запуск от имени администратора». Так вы получите полный доступ к командной строке, то есть сможете вводить системные команды.

  4. Step 4 Введите «ipconfig /displaydns» (здесь и далее команды вводятся без кавычек).

    Дважды проверьте, правильно ли введена команда, а затем нажмите Enter, чтобы открыть содержимое кэша. [1]

  5. Step 5 Просмотрите содержимое DNS-кэша в окне командной строки.

    Можно найти IP-адреса сайтов, которые вы часто посещаете; также можно очистить DNS-кэш.

    • В DNS-кэше хранится история веб-браузера, даже если очистить ее через настройки браузера.
  6. Step 6 Очистите кэш.

    Для этого введите команду «ipconfig /flushdns». Если вы столкнулись с ошибками в работе браузера, очистите DNS-кэш, чтобы устранить их. Также очистка DNS-кэша приведет к ускорению работы системы, потому что будут удалены ненужные данные.[2]

  7. Step 7 Убедитесь, что DNS-кэш был очищен.

    Запустите веб-браузер и попробуйте открыть сайт, который до этого не загружался. Теперь вы получите доступ к сайту!

    • Когда вы очистите DNS-кэш, первая загрузка любого сайта будет длиться дольше, чем обычно, потому что кэш будет обновляться.

    Реклама

  1. Step 1 Откройте Spotlight.

    Значок Spotlight выглядит как лупа и расположен в верхнем правом углу экрана.

  2. Step 2 Введите «терминал» (без кавычек) и откройте приложение «Терминал».

    С помощью терминала и команд можно получить доступ к системной информации, такой как содержимое DNS-кэша.

  3. Step 3 Введите «sudo discoveryutil...

    Введите «sudo discoveryutil udnscachestats» (здесь и далее команды вводятся без кавычек). Затем нажмите Return.

    • Команда «sudo» предоставляет права суперпользователя, с помощью которых можно получить доступ к конфиденциальной информации о системе.
    • Команда «discoveryutil» запрашивает информацию о DNS-кэше.
    • Команда «udnscachestats» отображает содержимое одного из двух разделов DNS-кэша.
  4. Step 4 В терминале введите пароль администратора.

    Это пароль, который используется для входа в систему. Затем нажмите Return. В терминале отобразится содержимое обычного (одноадресного) DNS-кэша.[3]

    • В обычном DNS-кэше (UDNS) адреса веб-сайтов (например, Facebook) преобразуются в IP-адреса, чтобы облегчить их поиск в будущем.
    • С вашего компьютера через UDNS отправляется один запрос об IP-адресе сайта на один сервер (независимо от количества серверов). Если этот сервер перестает отвечать на запросы, вы столкнетесь с ошибкой.[4]
  5. Step 5 В терминале просмотрите содержимое обычного DNS-кэша.

    Можно найти IP-адреса сайтов, которые вы часто посещаете. Если вы столкнулись с ошибкой в работе браузера, скорее всего, она связана с UDNS.

    • Также в DNS-кэше можно просмотреть недавнюю историю браузера. Чтобы получить полный отчет, необходимо просмотреть содержимое многоадресного DNS-кэша.
  6. Step 6 Закройте и снова откройте окно терминала.

    Так вы избавитесь от командных ошибок, когда будете просматривать следующий раздел DNS-кэша.

  7. Step 7 В терминале введите «sudo discoveryutil mdnscachestats».

    Затем нажмите Return.

    • Команда «sudo» предоставляет права суперпользователя, с помощью которых можно получить доступ к конфиденциальной информации о системе.
    • Команда «discoveryutil» запрашивает информацию о DNS-кэше.
    • Команда «mdnscachestats» отображает содержимое многоадресного DNS-кэша.
  8. Step 8 В терминале введите пароль администратора.

    Это пароль, который используется для входа в систему. Затем нажмите Return. В терминале отобразится содержимое многоадресного DNS-кэша.

    • В многоадресном DNS-кэше (MDNS) адреса веб-сайтов (например, Facebook) преобразуются в IP-адреса, чтобы облегчить их поиск в будущем.
    • С вашего компьютера через MDNS отправляется несколько запросов об IP-адресе сайта на несколько серверов. Если один из серверов перестает отвечать на запросы, их получат другие серверы, поэтому здесь вероятность возникновения ошибки значительно меньше.
  9. Step 9 В терминале просмотрите содержимое многоадресного DNS-кэша.

    Можно найти IP-адреса сайтов, которые вы часто посещаете.

    • Также в MDNS-кэше можно просмотреть недавнюю историю браузера. С помощью содержимого одноадресного и многоадресного кэша вы получите полный отчет.
  10. Step 10 Очистите DNS-кэш(и).

    В терминале введите «sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say cache flushed». Затем нажмите Return. Так вы удалите данные веб-сайтов, что приведет к устранению ошибок в работе браузера. Эта команда работает в последней версии OS X (10.11).[5]

    • Приведенная выше команда приведет к очистке обоих разделов кэша (UDNS и MDNS). Так можно избавиться от текущих ошибок и предотвратить будущие, поэтому необходимо очистить оба раздела кэша. Очистка кэша не скажется на работе системы.
    • Команда для очистки кэша зависит от версии OS X. Выясните, какую версию вы используете; для этого откройте меню Apple и выберите «Об этом Mac».
    • В OS X 10.10.4 и новых версиях введите «sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say cache flushed».
    • В OS X 10.10 – 10.10.3 введите «sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches; say flushed».
    • В OS X 10.7 – 10.9 введите «sudo killall -HUP mDNSResponder».
    • В OS X 10.5 – 10.6 введите «sudo dscacheutil -flushcache».
    • В OS X 10.3 – 10.4 введите «lookupd -flushcache».
  11. Step 11 Убедитесь, что DNS-кэш был очищен.

    Запустите веб-браузер и попробуйте открыть сайт, который до этого не загружался. Теперь вы получите доступ к сайту!

    • Когда вы очистите DNS-кэш, первая загрузка любого сайта будет длиться дольше, чем обычно, потому что кэш будет обновляться.

    Реклама

Советы

  • Включите и выключите режим полета, а затем перезагрузите мобильное устройство, чтобы очистить DNS-кэш.

Реклама

Предупреждения

  • Создайте резервную копию системы и дважды проверьте правильность введенной команды, прежде чем запустить ее в командной строке или терминале.
  • Будьте осторожны, когда просматриваете или очищаете DNS-кэш на публичном или рабочем компьютере — сначала спросите разрешения.

Реклама

Об этой статье

Эту страницу просматривали 23 002 раза.

Была ли эта статья полезной?

  • Windows

При использование каких-либо программ, для преобразования имени домена в адрес, они обращаются к DNS, и имена доменов где-то временно хранятся в каком-то файле. Так вот, где можно посмотреть все эти собранные доменные имена в Windows?


  • Вопрос задан

  • 875 просмотров



3

комментария


Подписаться

1



Простой


3

комментария

  • Андрей

    @andrey-marun Автор вопроса

    Мне интересно, кто здесь такой умный, что ставит за меня значок (Отмечено решением)?

  • Андрей, Куратор тега, потому что на вопрос ответ дан

  • Андрей

    @andrey-marun Автор вопроса

    Hemul GM, так вопрос же я здесь задаю, чтобы получить ответ для себя, а не для куратора тега. Притом эти кураторы часто ошибаются, и сам факт того, что они принимают решение за автора вопроса — является большим нарушением!


Решения вопроса 1

Hemul GM

@HemulGM Куратор тега Windows

Delphi Developer, сис. админ

  • Андрей

    @andrey-marun Автор вопроса

    Хорошо, так а в каком именно файле всё это хранится, и где?

  • Андрей

    @andrey-marun Автор вопроса

    ipconfig /flushdns — очистка кэша dns

  • Андрей, так у тебя вопрос-то в чем был?
    1. Как узнать кэш DNS в Windows?
    2. В каком именно файле всё это хранится, и где?
    И ни разу не было сказано: «Как очистить кэш?»

  • Андрей, при чем, в ответе ниже, тебе скинули ссылку, в которой в самом вопросе топика в первых же строчках написано, как его очистить.

  • Андрей

    @andrey-marun Автор вопроса

    Hemul GM, я разве на китайском пишу?
    Про отображение кэша DNS вопрос решен, а подвопрос я указал в комментариях.
    Касаемо очистки кэша DNS, я вопроса не ставил, это просто информация отдельная (для некоторых людей).

Пригласить эксперта


Ваш ответ на вопрос

Войдите, чтобы написать ответ


Похожие вопросы


  • Показать ещё
    Загружается…

Минуточку внимания

Войдите на сайт

Чтобы задать вопрос и получить на него квалифицированный ответ.

Реклама

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Знакомство с windows xp функция
  • Npas windows 2016 что это
  • Windows to go или стандартная установка windows rufus
  • Топ деинсталляторов windows 10
  • Что хранится в папке temp в windows 10