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»General Articles»How to Disable Local DNS Caching on Ubuntu and LinuxMint

    How to Disable Local DNS Caching on Ubuntu and LinuxMint

    RahulBy RahulJanuary 17, 20181 Min ReadUpdated:January 29, 2018

    The Ubuntu team included dnsmasq service from Ubuntu 12.04 LTS release. This turns your system to be a local DNS caching server. When we access any website the first time, The system first search in the local DNS cache, It no entry found in local cache for the specified domain, it requests to remote DNS servers configured on your system and gets results from there. Also makes a local cache for faster resolution for next time you access the same domain.

    This tutorial will help you to disable local DNS caching on Ubuntu and LinuxMint systems. You can also clear current DNS cache instead of disable it completely.

    Disable DNS Cache

    Log in to your system with the user has sudo privileges and Edit NetworkManager configuration file in your favorite text editor.

    sudo vim /etc/NetworkManager/NetworkManager.conf
    

    Now comment the following entry by added # symbol to start of line like below.

    #dns=dnsmasq
    

    Save the configuration file. Vi users use ESC + :wq to save file and quit. Execute below command to NetworkManager apply new settings.

    sudo service network-manager restart
    

    All done.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleUpdate WordPress Ping List to Quick Index of Posts
    Next Article How to Install Latest Nvidia Drivers on Ubuntu

    Related Posts

    How to Import GPG Keys on Ubuntu & Debian (without apt-key)

    2 Mins Read

    Running a Cron job every Sunday (Weekly)

    2 Mins Read

    Scheduling a Python Script with Crontab

    2 Mins Read

    Running cron job every 12 hours (twice a day)

    Updated:August 2, 20221 Min Read

    (Resolved) Key is stored in legacy trusted.gpg Keyring

    Updated:August 9, 20222 Mins Read

    How to list all collections in MongoDB database

    1 Min Read

    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.