I've googled the crap out of this and can't seem to find an answer.
Does anyone know how to display the client resolver cache on a Linux box? On windoze it's ipconfig/displaydns.
Thanks.
Geek Question
Geek Question
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!
-Horatio
-Horatio
-
- Posts: 3338
- Joined: Tue Sep 24, 2002 7:26 pm
you have to hook up to the Geneva Megaserver IPDNS. this will let you know what your transfixilator has been running at for the past 12 gigahertz. now, under options>tools> client resolver cache...should be there looking at you.
Yo HO!! Just got me a code red and some funyons big dawg!!! SHIT YEAH! - Ray, excited about his breakfast
-
- Posts: 1764
- Joined: Fri May 30, 2003 5:07 pm
Well, some of the TTL times are pretty long so I imagine it is written to disk. Even if it is written to memory that should not be a limitation with the power of Linux. I mean, the whole /proc filesystem isn't even really on disk but is used by many commands in Linux.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!
-Horatio
-Horatio
Linux does not cache DNS lookups. It queries a nameserver (or /etc/hosts file) every single time it needs it.
Since this can be pretty slow, many linux boxes run a name server locally which will answer queries (from itself) and caches the answers.
The command to interact with the most common of these is "rndc". Two useful rndc commands are "rndc flush" and "rndc dumpdb". The first empties the cache and the second outputs the cache to a database file (which neither Jack nor I have either bothered reading). Restarting the nameserver will also flush the cache, if you don't mind the lack of finesse.
Dig is a nice nameserver interacter, but it mostly acts as a client and not as an administrator. It can tell you things like which name server gave it the answer, if it was cached, and similar details.
Since this can be pretty slow, many linux boxes run a name server locally which will answer queries (from itself) and caches the answers.
The command to interact with the most common of these is "rndc". Two useful rndc commands are "rndc flush" and "rndc dumpdb". The first empties the cache and the second outputs the cache to a database file (which neither Jack nor I have either bothered reading). Restarting the nameserver will also flush the cache, if you don't mind the lack of finesse.
Dig is a nice nameserver interacter, but it mostly acts as a client and not as an administrator. It can tell you things like which name server gave it the answer, if it was cached, and similar details.