Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Flush DNS Cache in Ubuntu and LinuxMint

    How to Flush DNS Cache in Ubuntu and LinuxMint

    RahulBy RahulJanuary 27, 20182 Mins ReadUpdated:January 29, 2018

    DNS (Domain Name System) is one of the backbones of the Internet. You can’t imagine running websites over the public network where millions of users around the world. Think there are no DNS available and you need to access the website using IP Address, Then it would be hard to remember to IP address of thousands of websites we visit daily. This is DNS, which is responsible to provide IP address for a domain name and we access websites from backend web servers.

    You may like:

    • Disable Local DNS Caching on Ubuntu and LinuxMint
    • Flush DNS Cache on Windows and MacOS
    • Flush DNS Cache

      Execute the below command to Flush DNS cache on your Ubuntu and Linux Mint systems.

      sudo /etc/init.d/dns-clean start
      

      Why You need to flush DNS cache?

      Sometimes, the websites moved to other servers or simply changes there IP address for some reasons. Now the responsibility of DNS to resolve the new IP address to allow uninterpreted access of websites. Our systems keep a cache of DNS records, which allows for faster resolution of IP address. After changing of IP address of any domain, it takes time to update local cache. In the meantime, you may get a broken page error. In this situation, You need to flush the local DNS cache. Now the question is How to Flush the DNS Cache in Ubuntu and Linux Mint? and I Hope this article helped you to do this.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Secure Nginx with Let’s Encrypt on Ubuntu 18.04 & 16.04 LTS
    Next Article How to enable or disable php modules on Ubuntu

    Related Posts

    How to Correctly Set the $PATH variable in Bash

    2 Mins Read

    What is the /etc/aliases file

    2 Mins Read

    What is the /etc/nsswitch.conf file in Linux

    2 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Delete a Let’s Encrypt Certificate using Certbot

    Updated:June 3, 20222 Mins Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    3 Comments

    1. Aheinousanus on May 21, 2021 5:14 pm

      Nice. Just twhat I was looking for. Thanks.

      Reply
    2. Lee Underwood on August 13, 2018 9:23 pm

      Thanks! Worked great on Ubuntu 14.04.

      Reply
    3. Pinoy tambayan on February 10, 2018 7:58 pm

      Hi Rahul,

      I’m using linus server and hosted a wordpress site on it but when i open my site even after 3 – 4 days i can’t see my new posts without clearing the browser’s cache. Can you tell me the reason behind this?

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Import GPG Keys on Ubuntu & Debian (without apt-key)
    • How To Install Google Chrome On macOS
    • How to Install Minecraft on Ubuntu 22.04 & 20.04
    • Running a Cron job every Sunday (Weekly)
    • Running Multiple Commands At Once in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.