1820137 Members
3235 Online
109619 Solutions
New Discussion юеВ

how to check dns cache

 
Maaz
Valued Contributor

how to check dns cache

name server: bind 9
name server type: cache-only
OS: rhel 4

how to check cache of DNS server cache ? any command ?

and also how to check/clear the dns client-cache ? in windows xp to check dns client cache 'ipconfig /displaydns' to clear cache 'ipconfig /flushdns'.. wana know linux equivalent.

Regards
Maaz
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: how to check dns cache

You can flush/clear dns cache on clients with restarting ncsd daemon: /etc/init.d/ncsd restart


regards,
ivan
Ragu_3
Trusted Contributor

Re: how to check dns cache

You can take a dump by doing "rndc dumpdb", the cache dump is saved as a file at '/var/cache/bind'. Do a "rndc --help" for more info.
Debian GNU/Linux for the Enterprise! Ask HP ...
Abdulla Fayez C.E.V.
Occasional Advisor

Re: how to check dns cache

Hi Maaz,

You can use this command.
#ipconfig /flushdns

Fayez
Vitaly Karasik_1
Honored Contributor

Re: how to check dns cache

I don't think that "normal" linux resolver library has a cache.
There is "nscd" (Name Service Cache Daemon). If you run it, you should restart nscd for cleaning its cache.

As for cache of bind9 - with "rndc" (http://www.bind9.net/manual/bind/9.2.5/Bv9ARM.ch03.html) you can check and clean dns cache.