1847097 Members
5206 Online
110262 Solutions
New Discussion

where is the dns cache?

 
SOLVED
Go to solution
常有慈悲心
Regular Advisor

where is the dns cache?

i want to know when use dns as name resolution.
if there is a dns cache on the client?
if there is ,is it a special process or a file to manage it?
if there isn't,
is there a cache on the server?
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor
Solution

Re: where is the dns cache?

DNS cache on primary server is in /etc/named.data directory. It is in same place on secondary server too.

you need to configure /etc/nsswitch.conf file to look in to DNS on all the clients.
The hosts entry in nsswitch.conf file looks like this.
hosts: files [TRYAGAIN=continue NOTFOUND=continue] dns [NOTFOUND=continue]

-USA..
Good Luck..
harry d brown jr
Honored Contributor

Re: where is the dns cache?


if there is a dns cache on the client?
---> Usually, but it depends on their configuration and OS

if there is ,is it a special process or a file to manage it?
---> Again it depends upon their configuration and OS - BUT NOT USUALLY

if there isn't, is there a cache on the server?
---> It depends upon which server, and in most cases it's in MEMORY, not in a file.


live free or die
harry d brown jr
Live Free or Die
Geoff Wild
Honored Contributor

Re: where is the dns cache?

On a DNS server - yes there is a cache - and it uses memory. No special file.

Client resolvers also have a cache - again no special file.

It stays in memory until the Time To Live expires - or you run out of memory.


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dave Hutton
Honored Contributor

Re: where is the dns cache?

If you are trying to troubleshoot a problem, and your client is Windows (XP or newer? I'm not sure) you can try from a dos command:
C:\ipconfig /flushdns

Which will clear your dns for your PC.
Doug Kratky
Frequent Advisor

Re: where is the dns cache?


There are a couple of answers here implying that HP-UX does client-side DNS caching. Is that really true? Can you point to documentation or commands that would show that?

My understanding is that HP-UX does not do client-side DNS caching and that if caching is desired, then a caching-only name server had to be run on the client. Is that not necessary?