Where dns store its cached entry

Posted on 2004-11-10
Last Modified: 2013-12-15
Hello all,

I'm curious where dns/bind stores its cached domain
entry. Is it on memory or a file on the disk?

If it's in memory, what will happen to the dns cache when we restart the computer?

I'm sorry for asking stupid question.


Question by:hstandit
    LVL 38

    Accepted Solution

    cache in memory.

    > what will happen to the dns cache when we restart the computer
    The cache will be wiped out cleanly after reboot or restart the named.


    Author Comment


    Thank you for your answer. So this case, if my name server is polluted or it caches as while has just been updated to, does restart named/computer solve the problem?

    Thanks again,
    LVL 14

    Assisted Solution


    It will also throw out the cache entry for once the time-to-live for the entry is reached. Therefore, when making a change to a publicly-visible host, it's usually done by first setting the TTL to something short (like 5 minutes), waiting for the original TTL to expire (usually something like 24 hours), making the change, and then setting the TTL back to normal.

    Author Comment

    Hi Chris,

    I know the concept of TTL. I was asking if restarting named would make my named start learning ip address of again.

    Thank you,

    LVL 38

    Expert Comment

    > restarting named would make my named start learning ip address of again.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now